Files
MiraAPI/MiraAPI/Patches/GameModes/MapBehaviourPatch.cs
T

19 lines
498 B
C#

/*
[HarmonyPatch(typeof(MapBehaviour))]
public static class MapBehaviourPatch
{
[HarmonyPrefix]
[HarmonyPatch(nameof(MapBehaviour.ShowSabotageMap))]
public static bool ShowSabotagePatch(MapBehaviour __instance)
{
var shouldShow = CustomGameModeManager.ActiveMode?.ShouldShowSabotageMap(__instance);
if (shouldShow.HasValue && !shouldShow.Value)
{
__instance.ShowNormalMap();
return false;
}
return true;
}
}*/