mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Class() constuction
Fix document
This commit is contained in:
parent
15eb5f1e8e
commit
40aa4cb7c5
@ -56,7 +56,7 @@ end
|
||||
|
||||
local function new(class)
|
||||
-- mixins
|
||||
class = class or {}
|
||||
class = class or {} -- class can be nil
|
||||
local inc = class.__includes or {}
|
||||
if getmetatable(inc) then inc = {inc} end
|
||||
|
||||
|
@ -59,7 +59,7 @@ callbacks for initalizing, entering and leaving a state:
|
||||
Called every time when entering the state. See :func:`Gamestate.switch`.
|
||||
|
||||
``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()``
|
||||
Called when re-entering a state by :func:`Gamestate.pop`-ing another state.
|
||||
|
Loading…
Reference in New Issue
Block a user