Files
Gangs/Gangs/GangServiceCollection.cs
2024-09-05 22:05:59 -07:00

24 lines
919 B
C#

using Commands;
using CounterStrikeSharp.API.Core;
using GangsAPI.Extensions;
using GangsAPI.Services;
using GangsAPI.Services.Commands;
using Microsoft.Extensions.DependencyInjection;
using Mock;
using SQLImpl;
namespace GangsImpl;
public class GangServiceCollection : IPluginServiceCollection<CS2Gangs> {
public void ConfigureServices(IServiceCollection serviceCollection) {
serviceCollection.AddPluginBehavior<IGangManager, MockGangManager>();
serviceCollection.AddPluginBehavior<IPlayerManager, MockPlayerManager>();
serviceCollection.AddPluginBehavior<IStatManager, MockStatManager>();
serviceCollection
.AddPluginBehavior<IGangStatManager, MockInstanceStatManager>();
serviceCollection
.AddPluginBehavior<IPlayerStatManager, MockInstanceStatManager>();
serviceCollection.RegisterCommands();
serviceCollection.AddPluginBehavior<ICommandManager, CommandManager>();
}
}