Class ModeState
- Namespace
- GridPlacement.GDScript
- Assembly
- MoonBark.GridPlacement.GDScript.dll
Maintains the state of the Grid Builder mode and emits signals when it changes.
class ModeState extends PlacementResource
ModeState
Properties
current
The active mode that the system is in for modifying the game world.
@export var current = PlacementEnums.Mode.OFF:
issues
var issues: Array[String] = []
issues
var issues: Array[String] = []
Methods
get_editor_issues
func get_editor_issues() -> Array[String]:
Returns
get_runtime_issues
func get_runtime_issues() -> Array[String]:
Returns
Events
mode_changed
Emitted whenever the building mode on the building state changes.
signal mode_changed(building_current: PlacementEnums.Mode)