-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginBase.cs
More file actions
28 lines (23 loc) · 854 Bytes
/
PluginBase.cs
File metadata and controls
28 lines (23 loc) · 854 Bytes
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
using System;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace ClearUI
{
[BepInPlugin(PluginGuid, PluginName, PluginVersion)]
public class PluginBase : BaseUnityPlugin
{
private const string PluginGuid = "soundedsquash.clearui";
private const string PluginName = "Clear UI";
private const string PluginVersion = "0.2.0.0";
private readonly Harmony _harmony = new Harmony(PluginGuid);
private static readonly ManualLogSource ManualLogSource = BepInEx.Logging.Logger.CreateLogSource(PluginGuid);
public void Awake()
{
// Initialize global objects
Settings.Initialize(Config, ManualLogSource);
_harmony.PatchAll();
ManualLogSource.LogInfo($"{PluginName} loaded");
}
}
}