-
Notifications
You must be signed in to change notification settings - Fork 0
/
PressureVessel.cs
40 lines (30 loc) · 1.18 KB
/
PressureVessel.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 BepInEx.Configuration;
using HarmonyLib;
using System.Reflection;
using xale.Subnautica.PressureVessel.Config;
using xale.Subnautica.PressureVessel.Craftables;
using xale.Subnautica.PressureVessel.Behaviours;
namespace xale.Subnautica.PressureVessel;
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
[BepInDependency("com.snmodding.nautilus")]
public class PressureVessel : BaseUnityPlugin
{
public new static ManualLogSource Logger { get; private set; }
public new static ConfigFile Config { get; private set; }
private static Assembly Assembly { get; } = Assembly.GetExecutingAssembly();
private void Awake()
{
Logger = base.Logger;
Config = base.Config;
// Install internal configuration settings.
PressureVesselConfig.Initialize();
// Preload settings menu.
PressureVesselOptions.get();
// Install all added craftable items.
Craftables.Craftables.RegisterAll();
Harmony.CreateAndPatchAll(Assembly, $"{MyPluginInfo.PLUGIN_GUID}");
Logger.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
}
}