Added mapping tool, reworked scene structure, and added test data.

This commit is contained in:
2026-09-06 16:50:32 -07:00
parent ab632f455d
commit a7ba813c81
20 changed files with 350 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
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"])