mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-22 07:56:52 -06:00
Add some comments.
This commit is contained in:
+2
-1
@@ -45,7 +45,8 @@ function GS.push(to, ...)
|
|||||||
assert(to, "Missing argument: Gamestate to switch to")
|
assert(to, "Missing argument: Gamestate to switch to")
|
||||||
assert(to ~= GS, "Can't call push with colon operator")
|
assert(to ~= GS, "Can't call push with colon operator")
|
||||||
local pre = stack[#stack]
|
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
|
to.load = nil
|
||||||
stack[#stack+1] = to
|
stack[#stack+1] = to
|
||||||
return (to.enter or __NULL__)(to, pre, ...)
|
return (to.enter or __NULL__)(to, pre, ...)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
class = require "lib.30log"
|
class = require "lib.30log"
|
||||||
tiny = require "lib.tiny"
|
tiny = require "lib.tiny"
|
||||||
gamestate = require "lib.gamestate"
|
gamestate = require "lib.gamestate" -- slightly modified to play nice;y with 30log
|
||||||
local Intro = require "src.states.Intro"
|
local Intro = require "src.states.Intro"
|
||||||
local Level = require "src.states.Level"
|
local Level = require "src.states.Level"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user