mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
18 lines
496 B
C#
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));
|
|
}
|
|
}
|
|
}
|