mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 23:33:33 +08:00
WIP
This commit is contained in:
@@ -3,24 +3,12 @@ using HarmonyLib;
|
||||
|
||||
namespace UXAssist.Common;
|
||||
|
||||
public static class GameLogic
|
||||
public class GameLogic: PatchImpl<GameLogic>
|
||||
{
|
||||
private static Harmony _harmony;
|
||||
public static Action OnDataLoaded;
|
||||
public static Action OnGameBegin;
|
||||
public static Action OnGameEnd;
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
_harmony ??= Harmony.CreateAndPatchAll(typeof(GameLogic));
|
||||
}
|
||||
|
||||
public static void Uninit()
|
||||
{
|
||||
_harmony?.UnpatchSelf();
|
||||
_harmony = null;
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(VFPreload), nameof(VFPreload.InvokeOnLoadWorkEnded))]
|
||||
public static void VFPreload_InvokeOnLoadWorkEnded_Postfix()
|
||||
|
||||
Reference in New Issue
Block a user