Skip to content

GBInjectableFactory

Factory for creating and injecting RefCounted objects with dependencies.

Provides centralized creation of RefCounted objects that need dependency injection since they cannot be automatically discovered by the GBInjectorSystem.

static func create_collision_mapper( container: GBCompositionContainer ) -> CollisionMapper

Creates and injects a CollisionMapper with dependencies.

static func create_placement_validator( container: GBCompositionContainer ) -> PlacementValidator

Creates and injects a PlacementValidator with dependencies.

static func create_test_setup_factory( container: GBCompositionContainer ) -> TestSetupFactory

Creates and injects a TestSetupFactory with dependencies.

addons/grid_building/factories/gb_injectable_factory.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.