mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Add attributes to tiny.system. Implement Interval Systems.
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ describe('tiny-ecs:', function()
|
||||
|
||||
local world, entity1, entity2, entity3
|
||||
|
||||
local moveSystem = tiny.processingSystem()
|
||||
local moveSystem = tiny.system({}, {"process"})
|
||||
moveSystem.filter = tiny.requireAll("xform", "vel")
|
||||
function moveSystem:process(e, dt)
|
||||
local xform = e.xform
|
||||
|
||||
Reference in New Issue
Block a user