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