Table of Contents
Extensions for RoundModels
public static class RoundModelExt
Inheritance System.Object RoundModelExt
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);
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)
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;
T
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)
Removes all Bloon Groups from the Round
public static void ClearBloonGroups(this RoundModel roundModel);
roundModel
Il2CppAssets.Scripts.Models.Rounds.RoundModel
Removes the index'th Bloon Group where the id is as specified
public static void RemoveBloonGroup(this RoundModel roundModel, string bloonId, int index);
roundModel
Il2CppAssets.Scripts.Models.Rounds.RoundModel
bloonId
System.String
index
System.Int32
Removes all Bloon Groups where the id is as specified
public static void RemoveBloonGroup(this RoundModel roundModel, string bloonId);
roundModel
Il2CppAssets.Scripts.Models.Rounds.RoundModel
bloonId
System.String
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);
roundModel
Il2CppAssets.Scripts.Models.Rounds.RoundModel
oldBloonId
System.String
newBloonId
System.String
byBaseId
System.Boolean
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;
T
roundModel
Il2CppAssets.Scripts.Models.Rounds.RoundModel
oldBloonId
System.String
byBaseId
System.Boolean