13 lines
505 B
C#
13 lines
505 B
C#
namespace NeonSprawl.Server.Game.Npc;
|
|
|
|
/// <summary>Registers prototype NPC runtime behavior state store (NEO-93).</summary>
|
|
public static class NpcRuntimeServiceCollectionExtensions
|
|
{
|
|
/// <summary>Registers <see cref="INpcRuntimeStateStore"/> as an in-memory singleton.</summary>
|
|
public static IServiceCollection AddNpcRuntimeStateStore(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<INpcRuntimeStateStore, InMemoryNpcRuntimeStateStore>();
|
|
return services;
|
|
}
|
|
}
|