SessionZero-Client/sessionzero-client/scripts/datapacks/other/dependency_source.gd

21 lines
734 B
GDScript

# dependency_source.gd
class_name DependencySource
extends Resource
enum DependencyMode {
SPECIFIC_DATASET, # Reference a known Dataset/Template by its ID and GUID
DATASET_TYPE_WILDCARD, # Reference ANY Dataset/Template that matches a specific type string
}
@export var mode: DependencyMode = DependencyMode.SPECIFIC_DATASET
@export var display_name: String = ""
# --- Used for SPECIFIC_DATASET mode ---
# The GUID of the Datapack the dependency lives in (optional, can be empty for local pack)
@export var target_datapack_guid: String = ""
@export var target_sz_object_id: String = ""
# --- Used for DATASET_TYPE_WILDCARD mode ---
# The type string to match (e.g., "items").
@export var target_type_string: String = ""