YarnInstruction
class_name YarnInstruction
extends ResourceInherits from Resource
#Nested Types
- OpCode enum
#Properties
#bool_value
var bool_value: bool = falseType bool
#command_text
var command_text: String = ""Type String
#complexity_score
var complexity_score: int = 0Type int
#content_id
var content_id: String = ""Type String
#destination
var destination: int = 0Type int
#float_value
var float_value: float = 0.0Type float
#function_name
var function_name: String = ""Type String
#has_condition
var has_condition: bool = falseType bool
#line_id
var line_id: String = ""Type String
#node_name
var node_name: String = ""Type String
#opcode
var opcode: int = 14Type int
#string_value
var string_value: String = ""Type String
#substitution_count
var substitution_count: int = 0Type int
#variable_name
var variable_name: String = ""Type String
#Methods
#add_option(String, int, int, bool)
static func add_option(id: String, dest: int, subs: int, has_cond: bool) -> YarnInstructionParameters
idStringdestintsubsinthas_condbool
Returns YarnInstruction
#add_saliency_candidate_from_node(String, int)
static func add_saliency_candidate_from_node(name: String, dest: int) -> YarnInstructionParameters
nameStringdestint
Returns YarnInstruction
#add_saliency_candidate(String, int, int)
static func add_saliency_candidate(id: String, complexity: int, dest: int) -> YarnInstructionParameters
idStringcomplexityintdestint
Returns YarnInstruction
#call_func(String)
#detour_to_node(String)
static func detour_to_node(name: String) -> YarnInstructionParameters
nameString
Returns YarnInstruction
#jump_if_false(int)
#jump_to(int)
#peek_and_detour_to_node()
static func peek_and_detour_to_node() -> YarnInstructionReturns YarnInstruction
#peek_and_jump()
static func peek_and_jump() -> YarnInstructionReturns YarnInstruction
#peek_and_run_node()
static func peek_and_run_node() -> YarnInstructionReturns YarnInstruction
#pop()
static func pop() -> YarnInstructionReturns YarnInstruction
#push_bool(bool)
#push_float(float)
#push_string(String)
static func push_string(value: String) -> YarnInstructionParameters
valueString
Returns YarnInstruction
#push_variable(String)
static func push_variable(name: String) -> YarnInstructionParameters
nameString
Returns YarnInstruction
#return_inst()
static func return_inst() -> YarnInstructionReturns YarnInstruction
#run_command(String, int)
static func run_command(text: String, subs: int) -> YarnInstructionParameters
textStringsubsint
Returns YarnInstruction
#run_line(String, int)
static func run_line(id: String, subs: int) -> YarnInstructionParameters
idStringsubsint
Returns YarnInstruction
#run_node(String)
#select_saliency_candidate()
static func select_saliency_candidate() -> YarnInstructionReturns YarnInstruction
#show_options()
static func show_options() -> YarnInstructionReturns YarnInstruction
#stop()
static func stop() -> YarnInstructionReturns YarnInstruction
#store_variable(String)
static func store_variable(name: String) -> YarnInstructionParameters
nameString
Returns YarnInstruction
Generated from Yarn Spinner for Godot GDScript 3.3.