neon-sprawl/server/NeonSprawl.Server/Game/Npc/ThreatStateServiceCollectio...

13 lines
482 B
C#

namespace NeonSprawl.Server.Game.Npc;
/// <summary>Registers prototype threat/aggro state store (NEO-92).</summary>
public static class ThreatStateServiceCollectionExtensions
{
/// <summary>Registers <see cref="IThreatStateStore"/> as an in-memory singleton.</summary>
public static IServiceCollection AddThreatStateStore(this IServiceCollection services)
{
services.AddSingleton<IThreatStateStore, InMemoryThreatStateStore>();
return services;
}
}