GBConfigurationValidator

Highly recommended to call this...

sort Weight: 10

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

Version: v5.0.0

STABLE

Inherits: RefCounted
Source: gb_configuration_validator.gd
Parsing: AST-based for maximum accuracy with symbol typing


Methods

get_editor_issues

Signature: static get_editor_issues(container: GBCompositionContainer) -> Array

container: GBCompositionContainer - The container to validate

Returns: Array

Static: true

Parameters:

  • container: GBCompositionContainer

get_runtime_issues

Signature: static get_runtime_issues(container: GBCompositionContainer, p_checks: GBRuntimeChecks) -> Array

p_checks: GBRuntimeChecks - The runtime checks to perform

Returns: Array

Static: true

Parameters:

  • container: GBCompositionContainer
  • p_checks: GBRuntimeChecks

_format_diagnostic_sections

Signature: static _format_diagnostic_sections(sections: Dictionary, title: String, container: GBCompositionContainer, all_issues: Array) -> String

Helper function to format diagnostic sections into human-readable output

Returns: String

Static: true

Parameters:

  • sections: Dictionary
  • title: String
  • container: GBCompositionContainer
  • all_issues: Array

editor_diagnostic

Signature: static editor_diagnostic(container: GBCompositionContainer) -> String

and prints the issues found for each one, including the resource path when available.

Returns: String

Static: true

Parameters:

  • container: GBCompositionContainer

runtime_diagnostic

Signature: static runtime_diagnostic(container: GBCompositionContainer, p_checks: GBRuntimeChecks = null) -> String

and prints the issues found for each one, including the resource path when available.

Returns: String

Static: true

Parameters:

  • container: GBCompositionContainer
  • p_checks: GBRuntimeChecks (optional, default: null)

validate_editor

Signature: static validate_editor(container: GBCompositionContainer) -> bool

Logs issues and returns whether no issues were found

Returns: bool

Static: true

Parameters:

  • container: GBCompositionContainer

validate_runtime

Signature: static validate_runtime(container: GBCompositionContainer) -> bool

by the GBInjectorSystem before validation

Returns: bool

Static: true

Parameters:

  • container: GBCompositionContainer