mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-11-28 23:54:21 +00:00
Add some comments.
This commit is contained in:
parent
176c80d0d9
commit
5ac81f5c4a
@ -45,7 +45,8 @@ function GS.push(to, ...)
|
||||
assert(to, "Missing argument: Gamestate to switch to")
|
||||
assert(to ~= GS, "Can't call push with colon operator")
|
||||
local pre = stack[#stack]
|
||||
;(to.load or __NULL__)(to)
|
||||
;(to.load or __NULL__)(to) -- modified to use load instead of init so as
|
||||
-- to not interfere with 30log.
|
||||
to.load = nil
|
||||
stack[#stack+1] = to
|
||||
return (to.enter or __NULL__)(to, pre, ...)
|
||||
|
Loading…
Reference in New Issue
Block a user