You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i run task system according to the document. i got scheduler is nil error.
locallog= {}
localTask_A=ECS.System('task', function()
-- In this example, TASK_A takes time to execute, delaying its executionlocali=0whilei<=4000doi=i+1ifi%1000==0thencoroutine.yield()
endendtable.insert(log, 'A')
end)
localTask_B=ECS.System('task', function()
table.insert(log, 'B')
end)
localTask_C=ECS.System('task', function()
table.insert(log, 'C')
end)
localTask_D=ECS.System('task', function()
table.insert(log, 'D')
end)
localTask_E=ECS.System('task', function()
table.insert(log, 'E')
end)
localTask_F=ECS.System('task', function()
table.insert(log, 'F')
end)
localTask_G=ECS.System('task', function()
table.insert(log, 'G')
end)
localTask_H=ECS.System('task', function(self)
table.insert(log, 'H')
end)
--[[ A<-------C<---+-----F<----+ | | | | +----+ E<----+ H | | | B<--+----D<---+------G<---+ A - has no dependency B - has no dependency C - Depends on A,B D - Depends on B E - Depends on A,B,C,D F - Depends on A,B,C,D,E G - Depends on B,D H - Depends on A,B,C,D,E,F,G Completion order will be B,D,G,A,C,E,F,H > In this example, TASK_A takes time to execute, delaying its execution]]Task_A.Before= {Task_C}
Task_B.Before= {Task_D}
Task_C.After= {Task_B}
Task_D.Before= {Task_G}
Task_F.After= {Task_E}
Task_E.After= {Task_D, Task_C}
Task_C.Before= {Task_F}
Task_H.After= {Task_F, Task_G}
world:AddSystem(Task_A)
world:AddSystem(Task_B)
world:AddSystem(Task_C)
world:AddSystem(Task_D)
world:AddSystem(Task_E)
world:AddSystem(Task_F)
world:AddSystem(Task_G)
world:AddSystem(Task_H)
The text was updated successfully, but these errors were encountered:
When i run task system according to the document. i got scheduler is nil error.
The text was updated successfully, but these errors were encountered: