Files
2026-08-12 21:41:33 +02:00

37 lines
1.1 KiB
GDScript

class_name PresentationCueIds
extends RefCounted
# Pure stable vocabulary only. Presentation layers may map these IDs to scenes,
# audio, particles, or animation without making the headless catalog load them.
const ITEM_FOOD := &"item.food"
const ITEM_HERBS := &"item.herbs"
const ITEM_WOOD := &"item.wood"
const ANIMAL_DOMESTIC_GOAT := &"animal.domestic_goat"
const ANIMAL_DOMESTIC_SHEEP := &"animal.domestic_sheep"
const RESOURCE_BERRY_PATCH := &"resource.berry_patch"
const RESOURCE_HERB_PATCH := &"resource.herb_patch"
const RESOURCE_TREE := &"resource.tree"
const STORAGE_APOTHECARY := &"storage.apothecary"
const STORAGE_PANTRY := &"storage.pantry"
const STORAGE_WOODPILE := &"storage.woodpile"
static func get_all() -> Array[StringName]:
var cue_ids: Array[StringName] = [
ANIMAL_DOMESTIC_GOAT,
ANIMAL_DOMESTIC_SHEEP,
ITEM_FOOD,
ITEM_HERBS,
ITEM_WOOD,
RESOURCE_BERRY_PATCH,
RESOURCE_HERB_PATCH,
RESOURCE_TREE,
STORAGE_APOTHECARY,
STORAGE_PANTRY,
STORAGE_WOODPILE,
]
cue_ids.sort_custom(
func(first: StringName, second: StringName): return String(first) < String(second)
)
return cue_ids