forked from dogdie233/LiarsBarEnhance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
32 lines (25 loc) · 1.23 KB
/
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
31
32
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LiarsBarEnhance.Features;
namespace LiarsBarEnhance;
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin
{
internal static new ManualLogSource Logger;
private void Awake()
{
// Plugin startup logic
Logger = base.Logger;
Harmony.CreateAndPatchAll(typeof(RemoveHeadRotationlimitPatch), nameof(RemoveHeadRotationlimitPatch));
Harmony.CreateAndPatchAll(typeof(CrazyShakeHeadPatch), nameof(CrazyShakeHeadPatch));
Harmony.CreateAndPatchAll(typeof(ChatProPatch), nameof(ChatProPatch));
Harmony.CreateAndPatchAll(typeof(CharMoveablePatch), nameof(CharMoveablePatch));
Harmony.CreateAndPatchAll(typeof(BigMouthPatch), nameof(BigMouthPatch));
Harmony.CreateAndPatchAll(typeof(ChineseNameFixPatch), nameof(ChineseNameFixPatch));
Harmony.CreateAndPatchAll(typeof(RemoveNameLengthLimitPatch), nameof(RemoveNameLengthLimitPatch));
Harmony.CreateAndPatchAll(typeof(FzHintPatch), nameof(FzHintPatch));
Harmony.CreateAndPatchAll(typeof (XP),nameof(XP));
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
}