mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Fix #22 - manage systems before setSystemIndex
This commit is contained in:
@@ -310,4 +310,14 @@ describe('tiny-ecs:', function()
|
||||
assert.are.same(_G, GLOBALS)
|
||||
end)
|
||||
|
||||
it("Can set system indices", function()
|
||||
local world = tiny.world()
|
||||
local systemA = tiny.system()
|
||||
local systemB = tiny.system()
|
||||
world:addSystem(systemA)
|
||||
world:addSystem(systemB)
|
||||
world:setSystemIndex(systemA, 1)
|
||||
assert(true)
|
||||
end)
|
||||
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user