feat: add BasePower abstraction
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using CounterStrikeSharp.API.Core;
|
||||
using Cs2SuperPowers.Players;
|
||||
using Cs2SuperPowers.Powers;
|
||||
using Cs2SuperPowers.Powers.Assign;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Cs2SuperPowers;
|
||||
|
||||
public class Cs2SuperPowersPluginDependencyInjection : IPluginServiceCollection<Cs2SuperPowersPlugin>
|
||||
{
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<ISuperPower, RiseFromTheDead>();
|
||||
services.AddSingleton<ISuperPower, FlashProof>();
|
||||
services.AddSingleton<ISuperPower, IronHead>();
|
||||
services.AddSingleton<ISuperPower, Phoenix>();
|
||||
services.AddSingleton<ISuperPower, Rambo>();
|
||||
services.AddSingleton<ISuperPower, ArmBreaker>();
|
||||
services.AddSingleton<ISuperPower, Ghost>();
|
||||
services.AddSingleton<ISuperPower, FinalMission>();
|
||||
services.AddSingleton<ISuperPower, IAmChicken>();
|
||||
services.AddSingleton<ISuperPower, OneShot>();
|
||||
services.AddSingleton<ISuperPower, Vampire>();
|
||||
services.AddSingleton<ISuperPower, BulletStorm>();
|
||||
services.AddSingleton<ISuperPower, Twister>();
|
||||
services.AddSingleton<ISuperPower, PowerThief>();
|
||||
services.AddSingleton<ISuperPower, BlindingLight>();
|
||||
services.AddSingleton<ISuperPower, FlashKing>();
|
||||
services.AddSingleton<ISuperPower, IronBody>();
|
||||
// mine
|
||||
services.AddSingleton<ISuperPower, GoFast>();
|
||||
services.AddSingleton<ISuperPower, TeleportOnKill>();
|
||||
services.AddSingleton<ISuperPower, GrenadeLauncher>();
|
||||
services.AddSingleton<ISuperPower, AirStrike>();
|
||||
services.AddSingleton<ISuperPower, NotSoDecoy>();
|
||||
services.AddSingleton<ISuperPower, PanicTeleport>();
|
||||
services.AddSingleton<ISuperPower, Wallhack>();
|
||||
services.AddSingleton<ISuperPower, DoubleJump>();
|
||||
services.AddSingleton<ISuperPower, RandomTeleport>();
|
||||
services.AddSingleton<ISuperPower, ExplosiveBullets>();
|
||||
services.AddSingleton<ISuperPower, Shield>();
|
||||
services.AddSingleton<ISuperPower, Jetpack>();
|
||||
services.AddSingleton<ISuperPower, DroppedNades>();
|
||||
|
||||
services.AddSingleton<IPowerAssignLogic, RandomAssignLogic>();
|
||||
services.AddSingleton<IPlayerHud, PlayerHud>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user