This commit is contained in:
Forrest 2026-10-04 12:07:36 -04:00
parent 276d43613d
commit 4298caf5cb
552 changed files with 42990 additions and 776 deletions

View file

@ -4,6 +4,9 @@ extends Node3D
## One purposeful area of the farm: an axis-aligned rectangle on the ground, centered on this
## node (rotation is ignored). Zones live under Zones/ in farm.tscn, and FarmZones looks them
## up by position. In the editor each zone draws a translucent box so the layout is visible.
## Outside zones are gathering areas beyond the farm's edge (north and east of it through the
## fence's gaps, south of it across open ground): there can be several of a kind, and
## FarmZones.zone(kind) only returns the farm's own.
enum Kind { CROP_FIELD, ANIMAL_PEN, SUPPLY_SHED, WORK_AREA, WOOD, SCRAP, STRAW }
@ -19,6 +22,8 @@ enum Kind { CROP_FIELD, ANIMAL_PEN, SUPPLY_SHED, WORK_AREA, WOOD, SCRAP, STRAW }
set(value):
tint = value
_update_preview()
## Beyond the farm's fence (a gathering area outside).
@export var outside := false
var _preview: MeshInstance3D