GBConfigurationValidator

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Centralized validation system for GBCompositionContainer configuration.

Source File: addons/grid_building/validation/gb_configuration_validator.gd

Extends: RefCounted

Public Methods

get_editor_issues

1
get_editor_issues(container: GBCompositionContainer) -> Array[String]

Flags: static

Validates a GBCompositionContainer configuration. Returns list of validation issues (empty if valid). container: GBCompositionContainer - The container to validate


get_runtime_issues

1
2
3
4
get_runtime_issues(
    container: GBCompositionContainer,
    p_checks: GBRuntimeChecks
) -> Array[String]

Flags: static

Validates runtime configuration (called after nodes are set up) container: GBCompositionContainer - The container to validate logger: GBLogger - The logger to use for logging issues p_checks: GBRuntimeChecks - The runtime checks to perform


editor_diagnostic

1
editor_diagnostic(container: GBCompositionContainer) -> String

Flags: static

Returns a human-readable, grouped diagnostic string for editor issues. This enumerates each main subresource (contexts, config, templates, actions, states) and prints the issues found for each one, including the resource path when available.


runtime_diagnostic

1
2
3
4
runtime_diagnostic(
    container: GBCompositionContainer,
    p_checks: GBRuntimeChecks = null
) -> String

Flags: static

Returns a human-readable, grouped diagnostic string for runtime issues. This enumerates each main subresource (contexts, config, templates, actions, states) and prints the issues found for each one, including the resource path when available.


validate_editor

1
validate_editor(container: GBCompositionContainer) -> bool

Flags: static

Logs issues and returns whether no issues were found


validate_runtime

1
validate_runtime(container: GBCompositionContainer) -> bool

Flags: static

Highly recommended to call this deferred on ready for your main gameplay scene to allow all nodes to be properly added to the scene AND injected by the GBInjectorSystem before validation


Private Methods

_format_diagnostic_sections

1
2
3
4
5
6
_format_diagnostic_sections(
    sections: Dictionary,
    title: String,
    container: GBCompositionContainer,
    all_issues: Array
) -> String

Flags: static, private

Helper function to format diagnostic sections into human-readable output