Skip to Main Content

BTD_Mod_Helper​.Api​.Scenarios​.ModGameMode


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Scenarios

ModGameMode Class

Class for a custom GameMode that will be added to the modes screen when starting a new match

public abstract class ModGameMode : BTD_Mod_Helper.Api.NamedModContent

Inheritance System.ObjectModContentNamedModContent  ModGameMode

Properties

ModGameMode.BaseGameMode Property

The id of the existing GameMode to use as a base. Use GameModeType.[name]
If this GameModeType.None, empty, or null, then an empty base will be used

public abstract string BaseGameMode { get; }

Property Value

System.String

ModGameMode.Difficulty Property

Where this Mode should show up within the Mode Select screen. Use DifficultyType.[name]

public abstract string Difficulty { get; }

Property Value

System.String

ModGameMode.DisplayNamePlural Property

The name that will actually be display when referring to multiple of these

public sealed override string DisplayNamePlural { get; }

Property Value

System.String

ModGameMode.Icon Property

The Icon for the Button for this Mode within the UI, by default looking for the same name as the file

public virtual string Icon { get; }

Property Value

System.String

ModGameMode.IconReference Property

If you're not going to use a custom .png for your Icon, use this to directly control its SpriteReference

public virtual SpriteReference IconReference { get; }

Property Value

Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference

ModGameMode.PreApplies Property

Whether this GameMode ...

protected virtual bool PreApplies { get; }

Property Value

System.Boolean

Methods

ModGameMode.ModifyBaseGameModeModel(ModModel) Method

Implemented by a ModGameMode to modify the base game mode, for instance by adding or removing mutator mods

public abstract void ModifyBaseGameModeModel(ModModel gameModeModel);

Parameters

gameModeModel Il2CppAssets.Scripts.Models.ModModel

ModGameMode.ModifyGameModel(GameModel) Method

Modifies the GameModel that's used for matches played with this mode

public virtual void ModifyGameModel(GameModel gameModel);

Parameters

gameModel Il2CppAssets.Scripts.Models.GameModel

To learn how to download BTD Mod Helper and install mods, click here