Files
MiraAPI/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs
T
2025-10-14 14:06:43 -04:00

18 lines
496 B
C#

using HarmonyLib;
using MiraAPI.Events;
using MiraAPI.Events.Vanilla.Gameplay;
namespace MiraAPI.Patches.Events;
[HarmonyPatch(typeof(TutorialManager._RunTutorial_d__8), nameof(TutorialManager._RunTutorial_d__8.MoveNext))]
public static class FreeplayRoundStartPatch
{
public static void Postfix(TutorialManager._RunTutorial_d__8 __instance, ref bool __result)
{
if (!__result)
{
MiraEventManager.InvokeEvent(new RoundStartEvent(true));
}
}
}