mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-05 20:40:29 -08:00
* Reformat * Add cvar config for HNS * Add more HNS customization support * Add customizations to noscope * Remove unused class var * More tidying up * Remove config infra * Add configurability to C4 * Add contributing, add config explanation in readme
21 lines
1.2 KiB
Markdown
21 lines
1.2 KiB
Markdown
## Contributing
|
|
|
|
The jail plugin is currently in heavy development and all contributions are welcome!
|
|
Please make sure all contributions use the dependency injection system, or ask to have your contribution
|
|
ported if you don't know how.
|
|
|
|
> [!TIP]
|
|
> Microsoft has some good documentation on dependency injection here:
|
|
> [Overview](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection),
|
|
> [Using Dependency Injection](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-usage),
|
|
> [Dependency Injection Guidelines](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-guidelines).
|
|
|
|
All event handlers should derive from `IPluginBehavior` and be registered using
|
|
`IServiceCollection.AddPluginBehavior<T>`. If your behavior also acts as a service,
|
|
make sure to use `IServiceCollection.AddPluginBehavior<TInterface, T>`. All `IPluginBehavior` objects
|
|
have their event handlers automatically registered.
|
|
|
|
Code style should follow .NET conventions and use the formatting settings specified
|
|
in [Jailbreak.sln.DotSettings](./Jailbreak.sln.DotSettings)
|
|
(if you need help, make sure to check "enable edits from maintainers" and ask for a format)
|