Add documentation to building properties.

This commit is contained in:
Nekojimi 2025-05-01 17:48:37 +01:00
parent 3fa4987bbb
commit c6f43fac9b
1 changed files with 6 additions and 6 deletions

View File

@ -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