-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQMod.cs
More file actions
40 lines (38 loc) · 1.59 KB
/
QMod.cs
File metadata and controls
40 lines (38 loc) · 1.59 KB
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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using HarmonyLib;
using QModManager.API.ModLoading;
using Logger = QModManager.Utility.Logger;
using SMLHelper.V2.Json;
using SMLHelper.V2.Options.Attributes;
using SMLHelper.V2.Handlers;
namespace FasterSnowFoxCharging
{
[QModCore]
public static class QMod
{
internal static Config Config { get; } = OptionsPanelHandler.Main.RegisterModOptions<Config>();
[QModPatch]
public static void Patch()
{
var assembly = Assembly.GetExecutingAssembly();
var testMod = ($"Nagorogan_{assembly.GetName().Name}");
Logger.Log(Logger.Level.Info, $"Patching {testMod}");
Harmony harmony = new Harmony(testMod);
harmony.PatchAll(assembly);
Logger.Log(Logger.Level.Info, "Patched successfully!");
}
}
[Menu("SnowFox Quantum Locker")]
public class Config : ConfigFile
{
[Keybind("Quantum Locker Keybind", Tooltip = "When on the snowfox, press this key to open the built in quantum locker")]
public string LockerKey = "c";
[Choice("Locker Type", new[] {"Standard", "Quantum", "Snowfox"}, Tooltip = "Decides what type of locker the snowfox will have. Standard is a standard locker, Quantum is a quantum locker that shares inventory with all other quantum lockers, Snowfox is a locker that shares inventory with all other snowfoxes")]
public string LockerType = "Standard";
}
}