forked from NCrxpted/MansionOnlyMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FacilityOrMansionBase.cs
36 lines (35 loc) · 1.56 KB
/
FacilityOrMansionBase.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
using System;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using FacilityOrMansion.Patches;
namespace FacilityOrMansion
{
[BepInPlugin($"{PLUGIN_VERSION}", $"{PLUGIN_NAME}", $"{PLUGIN_VERSION}")]
public class FacilityOrMansionBase : BaseUnityPlugin
{
public const string PLUGIN_GUID = "DeathWrench.FacilityOrMansion";
public const string PLUGIN_NAME = "Facility or Mansion";
public const string PLUGIN_VERSION = "1.0.3";
public static FacilityOrMansionBase Instance { get; private set; }
public static ConfigEntry<bool> modIsEnabled { get; set; }
public static ConfigEntry<bool> mansionOnly { get; set; }
public static ConfigEntry<bool> facilityOnly { get; set; }
public static ManualLogSource mls { get; private set; }
private void Awake()
{
if (Instance == null)
{
Instance = this;
}
modIsEnabled = Config.Bind("Facility or Mansion", "Mod Enabled", false, "Enable or disable the mod.");
mansionOnly = Config.Bind("Choose Only One", "Mansion Only", false, "Interiors set to Mansion.");
facilityOnly = Config.Bind("Choose Only One", "Facility Only", false, "Interiors set to Facility.");
mls = BepInEx.Logging.Logger.CreateLogSource(PLUGIN_GUID.ToString());
mls.LogInfo($"{PLUGIN_NAME} {PLUGIN_VERSION} loaded succesfully!");
this.harmony.PatchAll(typeof(DungeonFlowTypePatch));
}
private readonly Harmony harmony = new Harmony($"{PLUGIN_GUID}");
}
}