building_system_flow_and_architecture.md¶
This document describes the high-level flow and class interactions for the building system in the Grid Building Plugin.
System Flow Overview¶
- Enter Build Mode
- Player triggers build mode (input action).
-
BuildingSystemis activated and creates a preview object. -
Preview Placement
- Preview object is positioned by
GridTargetingSystem. PlacementManagerandPlacementValidatorcheck if the preview location is valid.-
RuleCheckIndicatordisplays visual feedback by running all assignedTileCheckRules and updating its visuals. -
Placement Confirmation
- On confirmation,
BuildingSystemvalidates again. - If valid, places the object in the world and emits a success signal.
- If invalid, emits a failure signal and logs issues.
Key Classes¶
- BuildingSystem: Manages build mode, preview, and placement confirmation.
- GridTargetingSystem: Handles preview positioning.
- PlacementManager / PlacementValidator: Validate placement rules.
- RuleCheckIndicator: Shows visual feedback for tile validity.
See Also¶
- placement_chain.md for placement chain details
- collision_layer_system.md for collision handling
Last updated: 2025-08-07