Compose buildings from definitions and capabilities
This commit is contained in:
parent
1721edd123
commit
0504b24d8d
46 changed files with 1091 additions and 878 deletions
20
CommandBuildingDefinition.tres
Normal file
20
CommandBuildingDefinition.tres
Normal 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://CommandBuildingVisual.tscn" id="2"]
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
definition_id = "command_center"
|
||||
display_name = "Command Center"
|
||||
description = "Fly the fleet onto it to drag your fleet into a new formation. Rebuilt fleets keep it."
|
||||
cost = 15
|
||||
action_icon = 10
|
||||
menu_icon = 10
|
||||
visual_scene = ExtResource("2")
|
||||
capabilities = PackedStringArray("formation")
|
||||
map_color = Color(0.55, 0.6, 1, 1)
|
||||
map_sides = 4
|
||||
map_radius = 6.0
|
||||
map_phase = 0.785398
|
||||
menu_button_name = "CommandButton"
|
||||
menu_label_name = "CommandLabel"
|
||||
menu_cost_name = "CommandCost"
|
||||
Loading…
Reference in a new issue