Centralized enums used across the Grid Building plugin. Collects shared enum types (modes, actions, statuses, tile types) used by systems, UI, and tests.
Source: addons/grid_placement/placement_enums.gd
Syntax
class PlacementEnumsMembers
| Name | Kind | Summary |
|---|---|---|
is_placement_mode | Method | |
mode_to_string | Method | |
projection_method_to_string | Method | |
PREVIEW | Field | Coordinate mode for placement targeting. GRID snaps to cell centers (default). SMOOTH uses exact world positions. Metadata keys used by PlacementSession / PlacementStates / preview factories to attach information to scene-tree nodes via [code]Node.set_meta()[/code]. Centralizing the keys here is the single source of truth for cross-module meta key usage. Marks a node as a placement preview (terrain preview, drag preview, indicator preview, etc.). Read by the demo world loader to skip preview nodes during save/load and by indicator cleanup paths to free preview-owned collision shapes. |