mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -04:00
Revamp how systems are added to worlds
This commit is contained in:
parent
f6468fbe6b
commit
6eaf66308d
2 changed files with 61 additions and 118 deletions
3
main.lua
3
main.lua
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue