class

PointClickEngine::Actions::ActionInstance

Inherits Reference < Object

Runtime action state - wraps ActionData with execution state

Constructors

new(data : ActionData, callback : Proc(Nil) | Nil)
Source
new(data : ActionData)
Source

Instance methods

callback

Optional callback for code-defined actions

Source
callback=(callback : Proc(Nil) | Nil)

Optional callback for code-defined actions

Source
cancel!

Mark as cancelled

Source
complete!

Mark as completed

Source
custom_data

For action-specific runtime data (e.g., tracking dialog completion)

Source
custom_data=(custom_data : Hash(String, YAML::Any))

For action-specific runtime data (e.g., tracking dialog completion)

Source
data
Source
data=(data : ActionData)
Source
elapsed
Source
elapsed=(elapsed : Float32)
Source
finished?

Check if action is finished (completed or cancelled)

Source
get_custom(key : String) : YAML::Any | Nil

Get custom data value

Source
progress

Progress from 0.0 to 1.0 based on elapsed time and duration

Source
remaining_time

Time remaining until completion

Source
reset

Reset action to initial state for replay

Source
running?

Check if action is currently running

Source
set_custom(key : String, value)

Store custom data value

Source
start!

Mark as running

Source
started
Source
started=(started : Bool)
Source
state
Source
state=(state : ActionState)
Source