mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Fix World:clear
This commit is contained in:
parent
e5d6e1f4b9
commit
fea5fc7223
2 changed files with 1 additions and 4 deletions
3
main.lua
3
main.lua
|
@ -35,9 +35,6 @@ local test_system_1 = System({test_comp_1})
|
||||||
|
|
||||||
function test_system_1:init()
|
function test_system_1:init()
|
||||||
self.pool.onEntityAdded = function()
|
self.pool.onEntityAdded = function()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("Added to test_system 1")
|
print("Added to test_system 1")
|
||||||
end
|
end
|
||||||
self.pool.onEntityRemoved = function() print("Removed from test_system 1") end
|
self.pool.onEntityRemoved = function() print("Removed from test_system 1") end
|
||||||
|
|
|
@ -272,7 +272,7 @@ end
|
||||||
-- @return self
|
-- @return self
|
||||||
function World:clear()
|
function World:clear()
|
||||||
for i = 1, self.entities.size do
|
for i = 1, self.entities.size do
|
||||||
self.removeEntity(self.entities[i])
|
self:removeEntity(self.entities[i])
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue