YarnInMemoryVariableStorage
In-memory implementation of variable storage.
class_name YarnInMemoryVariableStorage
extends YarnVariableStorageInherits from YarnVariableStorage
#Properties
#debug_text_view
Assign a Label or RichTextLabel to display variables in-game.
var debug_text_view: ControlType Control
#show_debug
var show_debug: bool = falseType bool
#validate_variable_names
var validate_variable_names: bool = trueType bool
#Methods
#clear()
func clear() -> void#contains(String)
func contains(variable_name: String) -> boolParameters
variable_nameString
Returns bool
#from_save_data(Dictionary)
func from_save_data(data: Dictionary) -> voidParameters
dataDictionary
#get_all_variable_names()
func get_all_variable_names() -> PackedStringArrayReturns PackedStringArray
#get_all_variables_typed()
func get_all_variables_typed() -> DictionaryReturns Dictionary
#get_all_variables()
func get_all_variables() -> DictionaryReturns Dictionary
#get_debug_list()
func get_debug_list() -> StringReturns String
#get_value(String)
func get_value(variable_name: String) -> VariantParameters
variable_nameString
Returns Variant
#load_initial_values_from_program(YarnProgram)
#set_all_variables_typed(Dictionary, Dictionary, Dictionary, bool)
func set_all_variables_typed(floats: Dictionary, strings: Dictionary, bools: Dictionary, clear_first: bool = true) -> voidParameters
floatsDictionarystringsDictionaryboolsDictionaryclear_firstbool
#set_value(String, Variant)
func set_value(variable_name: String, value: Variant) -> voidParameters
variable_nameStringvalueVariant
#to_save_data()
func to_save_data() -> DictionaryReturns Dictionary
#try_get_value(String)
func try_get_value(variable_name: String) -> DictionaryParameters
variable_nameString
Returns Dictionary
Generated from Yarn Spinner for Godot GDScript 3.3.