namespace NeonSprawl.Server.Game.AbilityInput;

/// <summary>Registers prototype ability cooldown store + <see cref="TimeProvider"/> (NEO-32).</summary>
public static class AbilityCooldownServiceCollectionExtensions
{
    public static IServiceCollection AddAbilityCooldownStore(this IServiceCollection services)
    {
        services.AddSingleton(TimeProvider.System);
        services.AddSingleton<IPlayerAbilityCooldownStore, InMemoryPlayerAbilityCooldownStore>();
        return services;
    }
}
