mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Remove use of systemData - instead, Systems now have mutable data.
This removes a level of indirection and prevents passing around of entities.
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ describe('tiny-ecs:', function()
|
||||
|
||||
local timePassed = 0
|
||||
local oneTimeSystem = tiny.system()
|
||||
function oneTimeSystem:update(entities, dt)
|
||||
function oneTimeSystem:update(dt)
|
||||
timePassed = timePassed + dt
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user