-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.cs
30 lines (29 loc) · 881 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
using System;
using BepInEx;
using HarmonyLib;
using UnityEngine;
namespace StationeersStackVending
{
[BepInPlugin(pluginGuid, pluginName, pluginVersion)]
public class Plugin : BaseUnityPlugin
{
public const string pluginGuid = "io.inp.stationeers.stackvending";
public const string pluginName = "StackVending";
public const string pluginVersion = "1.0.0";
private static Harmony _h;
public static void Log(string line) {
Debug.Log("[StackVending]: " + line);
}
private void Awake()
{
try {
_h = new Harmony(pluginGuid);
_h.PatchAll();
Log("Patch succeeded");
} catch (Exception e) {
Log("Path failed");
Log(e.ToString());
}
}
}
}