-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.cs
40 lines (33 loc) · 1.13 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
33
34
35
36
37
38
39
40
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LethalLogger.Patches;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LethalLogger
{
[BepInPlugin(modGUID, modName, modVersion)]
public class LethalLoggerBase : BaseUnityPlugin
{
private const string modGUID = "NoodleLadJr.LethalLogger";
private const string modName = "LethalLogger";
private const string modVersion = "1.0.1";
private readonly Harmony harmony = new Harmony(modGUID);
private static LethalLoggerBase Instance;
public ManualLogSource mls;
public RoundInfo currentRound = new RoundInfo();
void Awake()
{
if (Instance == null) { Instance = this; }
mls = BepInEx.Logging.Logger.CreateLogSource(modGUID);
mls.LogInfo("LethalLogger is awake");
ShipExitPatch.Initialize(this);
harmony.PatchAll(typeof(LethalLoggerBase));
harmony.PatchAll(typeof(ShipExitPatch));
harmony.PatchAll(typeof(TeleportPatch));
}
}
}