Revamp how systems are added to worlds

This commit is contained in:
Tjakka5 2020-01-03 22:07:13 +01:00
parent f6468fbe6b
commit 6eaf66308d
2 changed files with 61 additions and 118 deletions

View file

@ -73,8 +73,7 @@ local world = World()
local entity = Entity(world)
entity:give(test_comp_1, 100, 100)
world:addSystem(test_system_1, "test")
world:addSystem(test_system_2, "test")
world:addSystems(test_system_1, test_system_2)
print("Iteration: 1")
world:emit("test")