Skip to content

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. It is designed to be used with a GBCompositionContainer that resolves dependencies and provides the necessary systems.

signal building_system_changed( new_system: BuildingSystem )

Signal emitted when a system becomes available or is replaced.

signal grid_targeting_system_changed( new_system: GridTargetingSystem )
signal manipulation_system_changed( new_system: ManipulationSystem )
get_building_system( ) -> BuildingSystem
get_grid_targeting_system( ) -> GridTargetingSystem
get_manipulation_system( ) -> ManipulationSystem
set_system( system: GBSystem ) -> void

Sets the passed system as an active system within the context’s scope.

get_editor_issues( ) -> Array[String]
get_runtime_issues( p_checks: GBRuntimeChecks ) -> Array[String]

Returns a list of runtime issues found in the context. p_checks: GBRuntimeChecks - The runtime checks to perform

addons/grid_building/context/gb_systems_context.gd


This page was auto-generated from GDScript source. Edit the source file to improve documentation.

Generated on 2025-09-07