extends Resource class_name ChoiceTarget ## Target scene to go to if condition is in game events. @export var target_scene_loc: String ## An array of event names-- empty array means that this target is default. @export var condition_events: Array[String] ## Name of event to log to events data. ## Can be empty string, in which case no event is logged. @export var target_event: String func _init(t_sc_loc : String, conditions: Array, event : String): target_scene_loc = t_sc_loc condition_events.assign(conditions) target_event = event static func load_dict(dict : Dictionary) -> ChoiceTarget: return ChoiceTarget.new(dict["t"], dict["c"], dict["e"])