GBCompositionContainer

Internal helper to get debug settings without logging (for logger initialization)

sort Weight: 10

Internal helper to get debug settings without logging (for logger initialization)

Version: v5.0.0

STABLE

Inherits: GBResource
Source: gb_composition_container.gd
Parsing: AST-based for maximum accuracy with symbol typing


Variables

_contexts:

Cached contexts instance for dependency resolution.


_states:

Cached states instance for system coordination.


_logger: GBLogger

Cached logger instance for debugging and warnings.

Type: GBLogger

Default: null


Methods

get_contexts

Signature: get_contexts() -> GBContexts

return: GBContexts - Contexts container with all system contexts

Returns: GBContexts


get_states

Signature: get_states() -> GBStates

return: GBStates - States container with targeting, building, manipulation states

Returns: GBStates


get_logger

Signature: get_logger() -> GBLogger

return: GBLogger - Logger instance for error/warning reporting

Returns: GBLogger


get_mode_state

Signature: get_mode_state() -> ModeState

Gets the mode state from the states container.

Returns: ModeState


get_targeting_state

Signature: get_targeting_state() -> GridTargetingState

Gets the grid targeting state from the states container.

Returns: GridTargetingState


get_building_state

Signature: get_building_state() -> BuildingState

Gets the building state from the states container.

Returns: BuildingState


get_manipulation_state

Signature: get_manipulation_state() -> ManipulationState

Gets the manipulation state from the states container.

Returns: ManipulationState


get_settings

Signature: get_settings() -> GBSettings

Gets the main settings configuration resource.

Returns: GBSettings


get_placement_rules

Signature: get_placement_rules() -> Array

Gets the placement rules array from settings.

Returns: Array


_log_placement_rules_summary

Signature: _log_placement_rules_summary(rules: Array) -> void

Consolidated logging: delegate to helper so the GBLogger can route to debugger/browse mode when appropriate

Returns: void

Parameters:

  • rules: Array

get_visual_settings

Signature: get_visual_settings() -> GBVisualSettings

Gets the visual settings from the main settings.

Returns: GBVisualSettings


get_systems_context

Signature: get_systems_context() -> GBSystemsContext

Gets the systems context from the contexts container.

Returns: GBSystemsContext


get_manipulation_settings

Signature: get_manipulation_settings() -> ManipulationSettings

Gets the manipulation settings from the main settings.

Returns: ManipulationSettings


get_runtime_checks

Signature: get_runtime_checks() -> GBRuntimeChecks

Gets the runtime checks configuration resource.

Returns: GBRuntimeChecks


get_templates

Signature: get_templates() -> GBTemplates

Gets the templates resource from configuration.

Returns: GBTemplates


get_indicator_context

Signature: get_indicator_context() -> IndicatorContext

Gets the placement context from the contexts container.

Returns: IndicatorContext


get_actions

Signature: get_actions() -> GBActions

Gets the input actions configuration resource.

Returns: GBActions


get_debug_settings

Signature: get_debug_settings() -> GBDebugSettings

Gets the debug settings from the main settings configuration.

Returns: GBDebugSettings


get_editor_issues

Signature: get_editor_issues() -> Array

Gets all issues that would prevent proper operation in the editor.

Returns: Array


get_runtime_issues

Signature: get_runtime_issues() -> Array

This should be called after your level is loaded with GBLevelContext and a GBOwner is set to the GBOwnerContext

Returns: Array


log_runtime_issues

Signature: log_runtime_issues() -> Array

Returns the issue array for programmatic inspection as well.

Returns: Array


validate_editor

Signature: validate_editor() -> bool

Runs validation checks on editor setup to ensure required resources are set

Returns: bool


validate_runtime

Signature: validate_runtime() -> bool

Returns: true if all runtime checks pass, false otherwise

Returns: bool


_get_debug_settings_for_logger

Signature: _get_debug_settings_for_logger() -> GBDebugSettings

Internal helper to get debug settings without logging (for logger initialization)

Returns: GBDebugSettings