Runs a sequence of actions
Constructors
new(name : String, engine : Core::Engine | Nil = nil)
SourceInstance methods
actions=(actions : Array(ActionInstance))
Sourceadd(data : ActionData)
Add action from ActionData
Sourceadd(action : ActionInstance)
Add action instance directly
Sourceadd_callback(callback : Proc(Nil))
Add action with callback (for code-defined actions)
Sourceadd_parallel(actions : Array(ActionData))
Add parallel action group - all actions run simultaneously
Sourceauto_advance=(auto_advance : Bool)
Sourcecheckpoints
Checkpoints for skip/resume functionality
Sourcecheckpoints=(checkpoints : Array(ActionCheckpoint))
Checkpoints for skip/resume functionality
Sourcecompleted=(completed : Bool)
Sourceconditions
Conditions for conditional execution
Sourceconditions=(conditions : Array(ActionCondition))
Conditions for conditional execution
Sourcecurrent_index=(current_index : Int32)
Sourcedraw
Draw action overlays (for text, custom visuals)
Sourceengine
Get engine (lazy access to singleton if not set)
Sourceengine=(engine : Core::Engine)
Sourceevaluate_condition(name : String) : Bool
Evaluate a condition and execute its actions if true
Returns true if condition was met and actions were executed
Sourceevaluate_start_conditions
Evaluate all conditions at the start of the sequence
Sourceexecutor
Executor reference (set externally or created lazily)
Sourceexecutor=(executor : ActionExecutor | Nil)
Executor reference (set externally or created lazily)
Sourceget_checkpoint(name : String) : ActionCheckpoint | Nil
Sourceget_variable(name : String) : YAML::Any | Nil
Sourcehas_active_parallels?
Check if any parallel runners are still active
Sourcejump_to_checkpoint(name : String) : Bool
Jump to a named checkpoint
Sourceon_action_complete=(on_action_complete : Proc(ActionInstance, Nil) | Nil)
Sourceon_action_start=(on_action_start : Proc(ActionInstance, Nil) | Nil)
Sourceon_complete=(on_complete : Proc(Nil) | Nil)
Sourceplay
Start playing the action sequence
Sourceprogress
Get current progress (0.0 to 1.0)
Sourcerunning=(running : Bool)
Sourceskippable=(skippable : Bool)
Sourceupdate(dt : Float32)
Update the action sequence (call every frame)
Sourcevariables
Variables from YAML (for reference/debugging)
Sourcevariables=(variables : Hash(String, YAML::Any))
Variables from YAML (for reference/debugging)
Source