13 lines
522 B
C#
13 lines
522 B
C#
namespace NeonSprawl.Server.Game.Combat;
|
|
|
|
/// <summary>Registers prototype combat entity health store (NEO-80).</summary>
|
|
public static class CombatEntityHealthServiceCollectionExtensions
|
|
{
|
|
/// <summary>Registers <see cref="ICombatEntityHealthStore"/> as an in-memory singleton.</summary>
|
|
public static IServiceCollection AddCombatEntityHealthStore(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<ICombatEntityHealthStore, InMemoryCombatEntityHealthStore>();
|
|
return services;
|
|
}
|
|
}
|