PointClickEngine::Characters::Dialogue::DialogTree
Inherits YAML::Serializable < Reference < Object
Dialog tree manager for complex conversations
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(name : String)
Sourcenew
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
add_node(node : DialogNode)
Sourcecurrent_node_id
Sourcecurrent_node_id=(current_node_id : String | Nil)
Sourceget_current_node
Sourceget_variable(key : String) : String | Nil
Sourcemake_choice(choice_index : Int32)
Sourcename
Sourcename=(name : String)
Sourcenodes
Sourcenodes=(nodes : Hash(String, DialogNode))
Sourceon_complete
Sourceon_complete=(on_complete : Proc(Nil) | Nil)
Sourceset_variable(key : String, value : String)
Sourcestart_conversation(starting_node_id : String)
Sourcevariables
Sourcevariables=(variables : Hash(String, String))
Source