ServiceCompositionRoot

ServiceCompositionRoot

Minimal 6.0 composition root for service wiring. This class provides the essential service registration for GridPlacement 6.0. It follows the Enhanced Service Registry Pattern with clean Core/Godot separation.

6.0 Architecture:

  • Core services: Pure C# business logic (IPlacementService, IPlacementCommands)
  • Godot services: Engine-specific operations (ISceneService)
  • ServiceRegistry: Dependency injection and lifetime management

Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Bootstrap/ServiceCompositionRoot.cs
Namespace: GridBuilding.Godot.Bootstrap
Kind: class

Parsing Method: AST-based (Roslyn) - NOT regex

⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.

Properties

IsInitialized

Gets whether the composition root is initialized.

Methods

_Ready

Called when the node enters the scene tree. Initializes core services and registers them with the ServiceRegistry.

Returns: void

_ExitTree

Called when the node is about to leave the scene tree. Cleans up all registered services.

Returns: void

GetGlobalRegistry

Gets the global service registry.

Returns: ServiceRegistry?

GetService

Gets a service from the global registry.

Returns: T?