GBInjectable
Summary
Section titled “Summary”Override this method to receive injected dependencies. This method will be called during initialization or when explicitly injected.
Fail‑fast policy: This abstract method intentionally provides NO stub implementation (no silent pass
).
Any subclass must implement it; omission will surface immediately at runtime when injection occurs.
container
: GBCompositionContainer - The dependency container with all services
**Returns:**bool - True if dependencies were successfully resolved, false otherwise
Methods
Section titled “Methods”func resolve_gb_dependencies( container: GBCompositionContainer ) -> bool
Override this method to receive injected dependencies. This method will be called during initialization or when explicitly injected.
Fail‑fast policy: This abstract method intentionally provides NO stub implementation (no silent
pass
). Any subclass must implement it; omission will surface immediately at runtime when injection occurs.container
: GBCompositionContainer - The dependency container with all services **Returns:**bool - True if dependencies were successfully resolved, false otherwisefunc get_runtime_issues( ) -> Array[String]
Validates that all required dependencies have been properly injected. Returns list of validation issue messages (empty if valid).
This is abstract & body-less to avoid masking missing overrides with a default [] return.
func inject_dependencies( container: GBCompositionContainer ) -> GBInjectable
Helper method to manually inject dependencies into this object. Useful when creating RefCounted objects that need injection outside of the normal flow.
container
: GBCompositionContainer - The dependency container
Source
Section titled “Source”addons/grid_building/base/gb_injectable.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.