From 121baeb178fd16d41022007aba29b6e3d8e36718 Mon Sep 17 00:00:00 2001 From: amber Date: Thu, 6 Aug 2026 17:37:55 -0400 Subject: [PATCH] Remove IsHideAndSeek --- MiraAPI/GameModes/AbstractGameMode.cs | 7 +------ MiraAPI/GameModes/HideAndSeekMode.cs | 1 - MiraAPI/Patches/GameModes/GameManagerPatches.cs | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/MiraAPI/GameModes/AbstractGameMode.cs b/MiraAPI/GameModes/AbstractGameMode.cs index 8e9cec1..688aa1b 100644 --- a/MiraAPI/GameModes/AbstractGameMode.cs +++ b/MiraAPI/GameModes/AbstractGameMode.cs @@ -31,7 +31,7 @@ public abstract class AbstractGameMode : IOptionable /// /// Gets the colored game mode name, using the color and name properties. /// - public string ColoredName => $"{Name}"; + public string ColoredName => $"{this.Name}"; /// /// Gets the game mode id. @@ -43,11 +43,6 @@ public abstract class AbstractGameMode : IOptionable /// public virtual bool GameModeBodyTypeOverride => false; - /// - /// Gets a value indicating whether the gamemode is based on Hide n Seek. - /// - public virtual bool IsHideAndSeek => false; - /// /// Gets a value indicating whether the gamemode removes the normal game settings. /// diff --git a/MiraAPI/GameModes/HideAndSeekMode.cs b/MiraAPI/GameModes/HideAndSeekMode.cs index 60680d5..d58424f 100644 --- a/MiraAPI/GameModes/HideAndSeekMode.cs +++ b/MiraAPI/GameModes/HideAndSeekMode.cs @@ -33,7 +33,6 @@ public class HideAndSeekMode : AbstractGameMode public override bool ShouldShowSabotageMap(MapBehaviour map) => false; public override bool ShowGameModeIntroCutscene => true; public override bool GameModeBodyTypeOverride => true; - public override bool IsHideAndSeek => true; public override bool ShowNormalGameSettings => false; public static int ImpostorPlayerID() diff --git a/MiraAPI/Patches/GameModes/GameManagerPatches.cs b/MiraAPI/Patches/GameModes/GameManagerPatches.cs index 7467d9e..fca4f75 100644 --- a/MiraAPI/Patches/GameModes/GameManagerPatches.cs +++ b/MiraAPI/Patches/GameModes/GameManagerPatches.cs @@ -22,7 +22,7 @@ internal static class GameManagerPatches { if (CustomGameModeManager.ActiveMode != null) { - __result = CustomGameModeManager.ActiveMode.IsHideAndSeek; + __result = CustomGameModeManager.ActiveMode is HideAndSeekMode; return false; }