mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
20 lines
479 B
C#
20 lines
479 B
C#
using HarmonyLib;
|
|
using GameModesEnum = AmongUs.GameOptions.GameModes;
|
|
|
|
namespace MiraAPI.Patches.GameModes;
|
|
|
|
[HarmonyPatch(typeof(CreateOptionsPicker), nameof(CreateOptionsPicker.SetGameMode))]
|
|
internal static class CreateOptionsPatch
|
|
{
|
|
public static bool Prefix(CreateOptionsPicker __instance, GameModesEnum mode)
|
|
{
|
|
if (mode <= GameModesEnum.SeekFools)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// TODO: finish this
|
|
return false;
|
|
}
|
|
}
|