![]() |
Lysa
0.0
Lysa 3D Engine
|
Top level registry to locate resource managers at runtime.
Public Member Functions | |
| template<typename T > | |
| T & | get () const |
| template<typename T > | |
| void | enroll (T &manager) |
|
inline |
Enroll a resources manager instance under a given type.
Registers the address of the provided ResourcesManager<T> so it can later be retrieved via get<T>().
| T | The type of resources handled by the manager. |
| manager | Reference to the manager instance to register. Ownership is not taken; the caller is responsible for the manager's lifetime, which must exceed any subsequent lookups. |
|
inline |
Retrieve a previously enrolled resources manager by type.
Looks up the manager registered under the given name and returns it as type T.
| T | The concrete manager type to retrieve (e.g., RenderingWindowManager). |
| Exception | if no manager has been enrolled under the specified type. |