GBEnums
Summary
Section titled “Summary”Centralized enums used across the Grid Building plugin.
Collects shared enum types (modes, actions, statuses, tile types) used by systems, UI, and tests.
enum Mode
Defines what building operation is being performed
OFF = 0
— Building systems are offlineINFO = 1
— Targeting objects for information purposes onlyBUILD = 2
— Objects currently being placedMOVE = 3
— Changing Position, Rotation, or Size of Existing ObjectsDEMOLISH = 4
— Destroying destructible objects from the scene
enum MoveDirection
Defines what moves are allowed for purposes like AStarGrid2D pathing
SINGLE = 0
— Only allow moves in a single direction up, down, left, rightALLOW_DIAGANOL = 1
— Allow diaganol moves that go in both X, Y axis at the same time
enum Action
Actions that can be taken within the building system
BUILD = 0
— Place object in locationMOVE = 1
— Move object to new locationROTATE = 2
— Rotate object left or rightFLIP_H = 3
— Flip horizontallyFLIP_V = 4
— Flip verticallyDEMOLISH = 5
— Destroy a scene object
enum Status
Status for a build / manipulation action
CREATED = 0
— Data for action has been createdSTARTED = 1
— Action has been started and is runningFAILED = 2
— Action failed to execute. Some actions can continue to attempt to finish after initial failing.FINISHED = 3
— Action has finished executing successfully,CANCELED = 4
— Action was manually canceled before finishing execution
Source
Section titled “Source”addons/grid_building/gb_enums.gd
This page was auto-generated from GDScript source. Edit the source file to improve documentation.
Generated on 2025-09-07