mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -04:00
Allow Entity.new to take a world
This commit is contained in:
parent
fea5fc7223
commit
ce32d16b8d
2 changed files with 10 additions and 4 deletions
4
main.lua
4
main.lua
|
@ -70,11 +70,9 @@ end
|
|||
|
||||
local world = World()
|
||||
|
||||
local entity = Entity()
|
||||
local entity = Entity(world)
|
||||
entity:give(test_comp_1, 100, 100)
|
||||
|
||||
world:addEntity(entity)
|
||||
|
||||
world:addSystem(test_system_1, "test")
|
||||
world:addSystem(test_system_2, "test")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue