-
Notifications
You must be signed in to change notification settings - Fork 1
/
Plugin.cs
30 lines (24 loc) · 870 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 BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace ShowFollowerJobTitles;
/// <summary>The plugin entry point.</summary>
[BepInPlugin("com.f4iTh.COTL.ShowFollowerJobTitles", "Show Follower Job Titles", "1.0.1")]
public class Plugin : BaseUnityPlugin {
/// <summary>A static logger instance that can be used across the entire project.</summary>
internal static ManualLogSource StaticLogger;
/// <summary>The Harmony instance.</summary>
private readonly Harmony _harmony = new("com.f4iTh.COTL.ShowFollowerJobTitles");
/// <inheritdoc cref="Plugin.Awake" />
private void Awake() {
StaticLogger = this.Logger;
}
/// <inheritdoc cref="Plugin.OnEnable" />
private void OnEnable() {
this._harmony.PatchAll();
}
/// <inheritdoc cref="Plugin.OnDisable" />
private void OnDisable() {
this._harmony.UnpatchSelf();
}
}