GBSystemsContext
Summary
Section titled “Summary”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.
Signals
Section titled “Signals”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 )
Methods
Section titled “Methods”func _init( p_logger: GBLogger ) -> voidfunc get_building_system( ) -> BuildingSystemfunc get_grid_targeting_system( ) -> GridTargetingSystemfunc get_manipulation_system( ) -> ManipulationSystemfunc set_system( system: GBSystem ) -> voidSets the passed system as an active system within the context’s scope.
func get_editor_issues( ) -> Array[String]func 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 performfunc _has_camera_2d_in_viewport( ) -> boolHelper method to check if Camera2D is present in the current viewport
func _find_camera_2d_in_node( node: Node ) -> boolRecursively search for Camera2D in a node tree
Source
Section titled “Source”addons/grid_building/context/gb_systems_context.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.