-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
32 lines (26 loc) · 953 Bytes
/
Plugin.cs
File metadata and controls
32 lines (26 loc) · 953 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
29
30
31
32
using BepInEx;
using BepInEx.Logging;
using CruiserSafety.Patches;
using HarmonyLib;
namespace CruiserSafety
{
[BepInPlugin(ModInfo.modGUID, ModInfo.modName, ModInfo.modVersion)]
public class CruiserDamagePatchBase : BaseUnityPlugin
{
private readonly Harmony harmony = new Harmony(ModInfo.modGUID);
private static CruiserDamagePatchBase instance;
internal ManualLogSource logSource;
void Awake()
{
if (instance == null)
{
instance = this;
}
logSource = BepInEx.Logging.Logger.CreateLogSource(ModInfo.modGUID);
harmony.PatchAll(typeof(CruiserDamagePatchBase));
harmony.PatchAll(typeof(CruiserDamagePatch));
harmony.PatchAll(typeof(NetworkPatch));
logSource.LogInfo(ModInfo.modName + " (version - " + ModInfo.modVersion + ")" + ": patches applied successfully");
}
}
}