Remove dependency on IDs in Systems and Entities.

This allows Systems to be reused in multiple worlds.
Fix a few bugs.
Remove World:change(...)
This commit is contained in:
bakpakin
2015-03-28 22:54:34 +08:00
parent e8b4b7f106
commit c046bde701
2 changed files with 51 additions and 68 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ local moves = System(
amove
)
local world = World(moves)
local world = World(moves, System(nil, nil, aall))
world:add(e1, e2, e3)
world:update(21)