mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Add role settings toggle and imp cooldown for mode
This commit is contained in:
1 parent
4c38189444
commit
54bfd3002b
1 file changed
+11
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AmongUs.GameOptions;
|
||||
using MiraAPI.GameOptions;
|
||||
using MiraAPI.PluginLoading;
|
||||
using Reactor.Utilities.Extensions;
|
||||
@@ -48,6 +49,16 @@ public abstract class AbstractGameMode : IOptionable
|
||||
/// </summary>
|
||||
public virtual bool ShowNormalGameSettings => true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the gamemode removes the normal role settings.
|
||||
/// </summary>
|
||||
public virtual bool ShowNormalRoleSettings => true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating the default kill cooldown for impostors in this mode.
|
||||
/// </summary>
|
||||
public virtual float DefaultImpostorKillCooldown => GameOptionsManager.Instance.CurrentGameOptions.GetFloat(FloatOptionNames.KillCooldown);
|
||||
|
||||
/// <summary>
|
||||
/// Called on GameManager.GetBodyType().
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user