Fix reordering of Systems.

This commit is contained in:
bakpakin
2015-04-25 21:37:04 +08:00
parent dc3deab725
commit dc69636f72
2 changed files with 15 additions and 2 deletions
+8
View File
@@ -197,6 +197,14 @@ describe('tiny-ecs:', function()
assert.equals(3, world:getEntityCount())
end)
it("Reorder Systems", function()
world:update(1)
world:setSystemIndex(moveSystem, 2)
world:update(1)
assert.equals(2, world:getSystemIndex(moveSystem))
assert.equals(1, world:getSystemIndex(oneTimeSystem))
end)
end)
end)