forked from RoboPhred/stationeers-vendomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVendomatic.cs
38 lines (32 loc) · 888 Bytes
/
Vendomatic.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
using System;
using BepInEx;
using HarmonyLib;
using UnityEngine;
namespace Vendomatic
{
[BepInPlugin("net.robophreddev.stationeers.Vendomatic", "Vending machine QOL Improvements", "1.0.0.0")]
public class VendomaticPlugin : BaseUnityPlugin
{
public static VendomaticPlugin Instance;
public void Log(string line)
{
Debug.Log("[Vendomatic]: " + line);
}
void Awake()
{
VendomaticPlugin.Instance = this;
try
{
// Harmony.DEBUG = true;
var harmony = new Harmony("net.robophreddev.stationeers.Vendomatic");
harmony.PatchAll();
Log("Patch succeeded");
}
catch (Exception e)
{
Log("Patch Failed");
Log(e.ToString());
}
}
}
}