Class() constuction

Fix document
This commit is contained in:
buckle2000 2016-08-24 11:38:49 +08:00 committed by Matthias Richter
parent 15eb5f1e8e
commit 40aa4cb7c5
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ end
local function new(class) local function new(class)
-- mixins -- mixins
class = class or {} class = class or {} -- class can be nil
local inc = class.__includes or {} local inc = class.__includes or {}
if getmetatable(inc) then inc = {inc} end if getmetatable(inc) then inc = {inc} end

View File

@ -59,7 +59,7 @@ callbacks for initalizing, entering and leaving a state:
Called every time when entering the state. See :func:`Gamestate.switch`. Called every time when entering the state. See :func:`Gamestate.switch`.
``leave()`` ``leave()``
Called when leaving a state. See :func:`Gamestate.switch` and :func:`Gamestate.push`. Called when leaving a state. See :func:`Gamestate.switch` and :func:`Gamestate.pop`.
``resume()`` ``resume()``
Called when re-entering a state by :func:`Gamestate.pop`-ing another state. Called when re-entering a state by :func:`Gamestate.pop`-ing another state.