Compose buildings from definitions and capabilities

This commit is contained in:
Loïc Wisniewski 2026-08-14 21:44:28 +02:00
commit 0504b24d8d
46 changed files with 1091 additions and 878 deletions

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="BuildingDefinition" load_steps=3 format=3]
[ext_resource type="Script" path="res://BuildingDefinition.gd" id="1"]
[ext_resource type="PackedScene" path="res://TransportHubBuildingVisual.tscn" id="2"]
[resource]
script = ExtResource("1")
definition_id = "transport_hub"
display_name = "Transport Hub"
description = "Stations transport vessels. They collect extracted resources and supply buildings that are waiting on materials."
cost = 30
action_icon = 12
menu_icon = 12
visual_scene = ExtResource("2")
capabilities = PackedStringArray("transport_hub")
map_color = Color(0.95, 0.55, 0.85, 1)
map_sides = 8
map_radius = 7.5
map_phase = 0.392699
menu_button_name = "TransportHubButton"
menu_label_name = "TransportHubLabel"
menu_cost_name = "TransportHubCost"