-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlugin.cs
30 lines (24 loc) · 906 Bytes
/
Plugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Reflection;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace com.yw2theorycrafter.nofeedbackreminder
{
[BepInPlugin(MyGuid, PluginName, VersionString)]
public class Plugin : BaseUnityPlugin
{
private const string MyGuid = "com.yw2theorycrafter.nofeedbackreminder";
private const string PluginName = "No Feedback Reminder";
private const string VersionString = "2.0.0";
public new static ManualLogSource Logger { get; private set; }
private static Assembly Assembly { get; } = Assembly.GetExecutingAssembly();
private void Awake()
{
// plugin startup logic
Logger = base.Logger;
// register harmony patches, if there are any
Harmony.CreateAndPatchAll(Assembly, $"{MyGuid}");
Logger.LogInfo($"Plugin {MyGuid} is loaded!");
}
}
}