Skip to Main Content

BTD_Mod_Helper​.Extensions​.RoundModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

RoundModelExt Class

Extensions for RoundModels

public static class RoundModelExt

Inheritance System.Object  RoundModelExt

Methods

RoundModelExt.AddBloonGroup(this RoundModel, string, int, float, float) Method

Adds a new group of Bloons to this round

public static void AddBloonGroup(this RoundModel roundModel, string bloonId, int count=1, float startTime=0f, float endTime=60f);

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

The round model

bloonId System.String

The id of the Bloon

count System.Int32

How many Bloons will be emitted

startTime System.Single

When this group starts emitting, in frames (seconds * 60)

endTime System.Single

When this group stops emitting, in frames (seconds * 60)

RoundModelExt.AddBloonGroup(this RoundModel, int, float, float) Method

Adds a new group of Bloons to this round

public static void AddBloonGroup<T>(this RoundModel roundModel, int count=1, float startTime=0f, float endTime=60f)
    where T : BTD_Mod_Helper.Api.Bloons.ModBloon;

Type parameters

T

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

The round model

count System.Int32

How many Bloons will be emitted

startTime System.Single

When this group starts emitting, in frames (seconds / 60)

endTime System.Single

When this group stops emitting, in frames (seconds / 60)

RoundModelExt.ClearBloonGroups(this RoundModel) Method

Removes all Bloon Groups from the Round

public static void ClearBloonGroups(this RoundModel roundModel);

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

RoundModelExt.RemoveBloonGroup(this RoundModel, string, int) Method

Removes the index'th Bloon Group where the id is as specified

public static void RemoveBloonGroup(this RoundModel roundModel, string bloonId, int index);

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

bloonId System.String

index System.Int32

RoundModelExt.RemoveBloonGroup(this RoundModel, string) Method

Removes all Bloon Groups where the id is as specified

public static void RemoveBloonGroup(this RoundModel roundModel, string bloonId);

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

bloonId System.String

RoundModelExt.ReplaceBloonInGroups(this RoundModel, string, string, bool) Method

Replaces BloonGroups of a certain bloonId with ones for a new Id

public static void ReplaceBloonInGroups(this RoundModel roundModel, string oldBloonId, string newBloonId, bool byBaseId=false);

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

oldBloonId System.String

newBloonId System.String

byBaseId System.Boolean

RoundModelExt.ReplaceBloonInGroups(this RoundModel, string, bool) Method

Replaces BloonGroups of a certain bloonId with ones for a new Id

public static void ReplaceBloonInGroups<T>(this RoundModel roundModel, string oldBloonId, bool byBaseId=false)
    where T : BTD_Mod_Helper.Api.Bloons.ModBloon;

Type parameters

T

Parameters

roundModel Il2CppAssets.Scripts.Models.Rounds.RoundModel

oldBloonId System.String

byBaseId System.Boolean

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