refactor: separate content from presentation assets

This commit is contained in:
Rijad Zuzo
2026-08-12 21:41:33 +02:00
parent 5a70aaaded
commit bf4bf73675
22 changed files with 480 additions and 70 deletions
@@ -0,0 +1,16 @@
[gd_resource type="Resource" script_class="PresentationCueDefinition" load_steps=2 format=3]
[ext_resource type="Script" path="res://world/presentation/PresentationCueDefinition.gd" id="1_cue"]
[resource]
script = ExtResource("1_cue")
cue_id = &"animal.domestic_goat"
scene_path = "res://world/animals/grazer/cozy_grazer.tscn"
animation_hook_id = &"grazer_routine"
parameters = {
"body_scale": Vector3(1, 1, 1),
"fluff_scale": Vector3(1, 1, 1),
"show_beard": true,
"show_horns": true,
"visual_scale": Vector3(1, 1, 1)
}
@@ -0,0 +1,16 @@
[gd_resource type="Resource" script_class="PresentationCueDefinition" load_steps=2 format=3]
[ext_resource type="Script" path="res://world/presentation/PresentationCueDefinition.gd" id="1_cue"]
[resource]
script = ExtResource("1_cue")
cue_id = &"animal.domestic_sheep"
scene_path = "res://world/animals/grazer/cozy_grazer.tscn"
animation_hook_id = &"grazer_routine"
parameters = {
"body_scale": Vector3(1.12, 1.08, 1.12),
"fluff_scale": Vector3(1.16, 1.14, 1.16),
"show_beard": false,
"show_horns": false,
"visual_scale": Vector3(1.08, 1.04, 1.08)
}
@@ -0,0 +1,9 @@
[gd_resource type="Resource" script_class="PresentationCatalogResource" load_steps=4 format=3]
[ext_resource type="Script" path="res://world/presentation/PresentationCatalogResource.gd" id="1_catalog"]
[ext_resource type="Resource" path="res://world/presentation/catalogs/animal_domestic_goat.tres" id="2_goat"]
[ext_resource type="Resource" path="res://world/presentation/catalogs/animal_domestic_sheep.tres" id="3_sheep"]
[resource]
script = ExtResource("1_catalog")
cues = Array[ExtResource("2_goat")]([ExtResource("2_goat"), ExtResource("3_sheep")])