PointClickEngine::Actions::ActionExecutor
Inherits Reference < Object
Executes action instances - all action logic in one place
Constructors
new(engine : Core::Engine)
SourceInstance methods
finish(action : ActionInstance, scene : Scenes::Scene)
Finish an action - called once when action completes
register_action(type : String, start : ActionStartHandler | Nil = nil, update : ActionUpdateHandler | Nil = nil, finish : ActionFinishHandler | Nil = nil, draw : ActionDrawHandler | Nil = nil)
Register a custom action handler
start(action : ActionInstance, scene : Scenes::Scene)
Start an action - called once when action begins
update(action : ActionInstance, scene : Scenes::Scene, dt : Float32) : Bool
Update an action - called every frame while running Returns true if action is complete