Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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";
}
```