Skip to content

GBContexts

Contains contexts for resolving references to current objects within the grid building system instance

indicator: IndicatorContext

Holds reference to current indicator manager object

owner: GBOwnerContext

Holds reference to the currently owning game node for the instance of the grid building system and related modules

systems: GBSystemsContext

Holds references to the systems used in grid building operations. This context allows for easy access to the systems without needing to pass them around manually.

func _init( p_logger: GBLogger ) -> void
func get_runtime_issues( p_checks: GBRuntimeChecks ) -> Array[String]

Ensures all runtime contexts are properly initialized. Contexts may need to have their properties defined by game objects like GBLevelContext and GBOwner

func get_editor_issues( ) -> Array[String]

Validates editor configuration before nodes are set up. This should be called during the editor setup phase.

Returns:

Array[String] - List of editor configuration issues (empty if valid)

addons/grid_building/context/gb_contexts.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.