-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
32 lines (27 loc) · 898 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
31
32
using System.Reflection;
using BepInEx;
using HarmonyLib;
using UnityEngine;
namespace LethalTerminalExtender
{
[BepInPlugin(GUID, NAME, VERSION)]
public class Plugin : BaseUnityPlugin
{
public const string GUID = "us.domkalan.lethalextendedterminal";
public const string NAME = "Lethal Extended Terminal";
public const string VERSION = "1.1.0";
public static Plugin instance;
private void Awake()
{
Plugin.instance = this;
// Plugin startup logic
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
Harmony harmony = new Harmony(GUID);
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
public void Log(LogType type, string contents)
{
Logger.LogInfo(contents);
}
}
}