Module service_registry

Module service_registry 

Source
Expand description

A generic, type-safe service locator for engine subsystems.

The ServiceRegistry provides a type-map where agents can store and retrieve shared references to services (e.g., GraphicsDevice, RenderSystem) without coupling the EngineContext to any specific subsystem.

§Design

This follows the Service Locator pattern to satisfy the Interface Segregation Principle: each agent fetches only the services it needs, and adding new services never modifies EngineContext.

Structs§

ServiceRegistry
A generic service registry keyed by TypeId.