-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBankTransferUtilityProgramPlugin.cs
52 lines (38 loc) · 1.38 KB
/
BankTransferUtilityProgramPlugin.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
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BepInEx;
using HarmonyLib;
using GHPluginCoreLib;
using System.Reflection;
namespace BankTransferUtilityProgramMod
{
[BepInPlugin(pluginGuid, pluginName, pluginVersion)]
public class BankTransferUtilityProgramPlugin : BaseUnityPlugin
{
private Harmony harmony = new Harmony(pluginGuid);
public static BankTransferUtilityProgramPlugin instance = null;
public const string pluginGuid = "gh.bank.transfer.utility.program.plugin";
public const string pluginName = "Bank Transfer Utility Program Plugin";
public const string pluginVersion = "0.1.0";
public string pluginDirectoryPath = "";
public string pluginDataDirectoryPath = "";
private void RegisterGreyOSPrograms()
{
GHPluginCore.instance.greyOSProgramManager.RegisterProgram(
new BankTransferUtilityProgram()
);
}
public void Awake()
{
instance = this;
GHPluginCore.instance.Init();
this.pluginDirectoryPath = AppDomain.CurrentDomain.BaseDirectory + "/BepInEx/plugins/" + pluginName.Replace(" ", "_");
this.pluginDataDirectoryPath = this.pluginDirectoryPath + "/Data";
harmony.PatchAll();
this.RegisterGreyOSPrograms();
}
}
}