A simple framework for CounterStrikeSharp plugin.
Provides powerful and faster development experience if your plugin feature is separated by module.
- Automated load/unload life cycle
- Automated ConVar config generation
- Dependency Injection with DI container
- Module oriented development
Since CounterStrikeSharp's DI requires injection class and definition class.
But I've created this framework for faster development, and convenience.
Also, If we make plugin with module oriented development, there is no way to inject the proper initialized and working module instance to other module.
- CounterStrikeSharp: v333 or later
- Download latest binary from latest Release
- Put this framework to a CounterStrikeSharp's shared folder
- Develop plugin using this framework or Get plugin uses this framework
- Install the plugin to your server
- Run server
- Create a new class library or go to existing project
- Run
dotnet add package TNCSSPluginFoundation - Ready to develop
See Example Plugin for module initialization and DI container usage.
Also, lupercalia-mg-cs2 is heavily uses this framework.
Detailed documentation is not available yet.