Services
csharp
public static class ServicesNamespace NodeWorld.Core.
The game's service locator: one instance per type.
Methods
Register<T>
csharp
public static void Register<T>(T instance)
where T : classRegisters instance as the service of type T.
Get<T>
csharp
public static T Get<T>()
where T : classThe service of type T; throws when none is registered.
TryGet<T>
csharp
public static bool TryGet<T>(out T instance)
where T : classThe service of type T, if one is registered.
