From c6f43fac9bb1fb8fd5bbe5b36d63029be12b9ae6 Mon Sep 17 00:00:00 2001 From: Nekojimi Date: Thu, 1 May 2025 17:48:37 +0100 Subject: [PATCH] Add documentation to building properties. --- scripts/building_components/building.gd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/building_components/building.gd b/scripts/building_components/building.gd index a3fd748..1377325 100644 --- a/scripts/building_components/building.gd +++ b/scripts/building_components/building.gd @@ -1,13 +1,13 @@ extends Node3D class_name Building -@export_category("Defence") -@export var max_hp: int = 100 +@export_group("Defence") +@export var max_hp: int = 100 ## Amount of damage this building can sustain before being destroyed. -@export_category("Stacking") -@export var can_stack: bool = true -@export var can_be_stacked_on: bool = true -@export var stack_position: Vector3 = Vector3(0,2,0) +@export_group("Stacking") +@export var can_stack: bool = true ## Whether this building can be stacked on top of other buildings. +@export var can_be_stacked_on: bool = true ## Whether this building will accept other buildings being stacked on it. +@export var stack_position: Vector3 = Vector3(0,2,0) ## The local position that stacked buildings will be placed at. @onready var build_position: Vector3 = global_position