-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.cs
37 lines (32 loc) · 1.36 KB
/
Main.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
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace ForceCombo
{
[BepInPlugin(MOD_ID, MOD_NAME, MOD_VERSION)]
[BepInDependency("com.pink.spinrhythm.spincore", BepInDependency.DependencyFlags.HardDependency)]
public class Main : BaseUnityPlugin
{
public const string MOD_ID = "ForceCombo";
public const string MOD_NAME = "Force Combo";
public const string MOD_VERSION = "1.4.0";
private static ManualLogSource _logger;
public static ForceComboMode ForceComboState = ForceComboMode.None;
public static bool InstantRestart = false;
public static bool InArcade = false;
public static bool InCustoms = false;
void Awake()
{
_logger = Logger;
Harmony harmony = new Harmony(MOD_ID);
harmony.PatchAll<FCLogic>();
harmony.PatchAll<FCUI>();
}
public static void Log(LogLevel level, object msg) => _logger.Log(level, msg);
public static void LogInfo(object msg) => Log(LogLevel.Info, msg);
public static void LogMessage(object msg) => Log(LogLevel.Info, msg);
public static void LogWarning(object msg) => Log(LogLevel.Warning, msg);
public static void LogError(object msg) => Log(LogLevel.Error, msg);
public static void LogDebug(object msg) => Log(LogLevel.Debug, msg);
}
}