GBSystemsContext
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
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.
Source File: /addons/grid_building/context/gb_systems_context.gd
Extends: RefCounted
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)
Private Properties
- Property:
_building_system: [BuildingSystem](./building-system/) = null(private) - Property:
_grid_targeting_system: [GridTargetingSystem](./grid-targeting-system/) = null(private) - Property:
_manipulation_system: [ManipulationSystem](./manipulation-system/) = null(private) - Property:
_logger: [GBLogger](./gb-logger/) = null(private)
Constants
- Constant:
BuildingSystem = preload("res://addons/grid_building/systems/building/building_system.gd")- Preload system classes to ensure they are registered before type resolution - Constant:
GridTargetingSystem = preload("res://addons/grid_building/systems/grid_targeting/grid_targeting_system.gd") - Constant:
ManipulationSystem = preload("res://addons/grid_building/systems/manipulation/manipulation_system.gd")
Public Methods
get_building_system
| |
get_grid_targeting_system
| |
get_manipulation_system
| |
set_system
| |
Sets the passed system as an active system within the context’s scope.
get_editor_issues
| |
get_runtime_issues
| |
Returns a list of runtime issues found in the context.
p_checks: GBRuntimeChecks - The runtime checks to perform
Private Methods
_init
| |
Flags: private
_has_camera_2d_in_viewport
| |
Flags: private
Helper method to check if Camera2D is present in the current viewport
_find_camera_2d_in_node
| |
Flags: private
Recursively search for Camera2D in a node tree
Grid Building v5.0.8 | Generated 24/05/2026