Optional ReadonlyattackReadonlycategoryOptional ReadonlydamageDamage per second this building deals to troops (defenses).
Optional ReadonlydamageReadonlyheightUnrotated footprint height in tiles.
Optional ReadonlyhitboxOptional explicit occupied cells, relative to the top-left of the
bounding box. When omitted the footprint is the full width × height
rectangle. Enables non-rectangular hitboxes later without a model change.
Optional ReadonlyhitpointsStructure hit points. Simulation falls back to a category default if unset.
ReadonlyidReadonlyminMinimum progression tier at which this building becomes available.
ReadonlynameOptional ReadonlytargetsReadonlywidthUnrotated footprint width in tiles.
The immutable, data-driven description of a building type (a Cannon, an Air Defense…). Instances (./building.ts) reference a definition by id. Definitions come from JSON in
data/— none of this is hardcoded, so adding a building is a data change, not a code change.