Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bepinex/bepinex.autoplugin
Source generator for quickly creating a BepInEx plugin scaffolding.
https://github.com/bepinex/bepinex.autoplugin
bepinex source-generator
Last synced: about 2 months ago
JSON representation
Source generator for quickly creating a BepInEx plugin scaffolding.
- Host: GitHub
- URL: https://github.com/bepinex/bepinex.autoplugin
- Owner: BepInEx
- License: lgpl-3.0
- Created: 2021-10-14T11:40:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T17:52:11.000Z (11 months ago)
- Last Synced: 2024-02-20T18:40:54.010Z (11 months ago)
- Topics: bepinex, source-generator
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BepInEx.AutoPlugin
[![CI](https://github.com/BepInEx/BepInEx.AutoPlugin/workflows/CI/badge.svg)](https://github.com/BepInEx/BepInEx.AutoPlugin/actions)
[![NuGet](https://img.shields.io/endpoint?color=blue&logo=NuGet&label=NuGet&url=https://shields.kzu.io/v/BepInEx.AutoPlugin?feed=nuget.bepinex.dev/v3/index.json)](https://nuget.bepinex.dev/packages/BepInEx.AutoPlugin)Source generator that turns
```cs
[BepInAutoPlugin("com.example.ExamplePlugin")]
public partial class ExamplePlugin : BaseUnityPlugin
{
}
```into
```cs
[BepInEx.BepInPlugin(ExamplePlugin.Id, "ExamplePlugin", "0.1.0")]
public class ExamplePlugin : BaseUnityPlugin
{
public const string Id = "com.example.ExamplePlugin";
public static string Name => "ExamplePlugin";
public static string Version => "0.1.0";
}
```