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)

Public Methods

get_building_system

1
get_building_system() -> BuildingSystem

get_grid_targeting_system

1
get_grid_targeting_system() -> GridTargetingSystem

get_manipulation_system

1
get_manipulation_system() -> ManipulationSystem

set_system

1
set_system(system: GBSystem) -> void

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


get_editor_issues

1
get_editor_issues() -> Array[String]

get_runtime_issues

1
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


Private Methods

_init

1
_init(p_logger: GBLogger) -> void

Flags: private


_has_camera_2d_in_viewport

1
_has_camera_2d_in_viewport() -> bool

Flags: private

Helper method to check if Camera2D is present in the current viewport


_find_camera_2d_in_node

1
_find_camera_2d_in_node(node: Node) -> bool

Flags: private

Recursively search for Camera2D in a node tree