Skip to Main Content

BTD_Mod_Helper​.Extensions​.BloonExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

BloonExt Class

Extensions for Bloons

public static class BloonExt

Inheritance System.Object  BloonExt

Methods

BloonExt.CreateBloonToSim(this Bloon) Method

Creates a new BloonToSimulation based off of this Bloon and stores it for possible later use. It will automatically
destroyed when this Bloon is destroyed

public static BloonToSimulation CreateBloonToSim(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

Il2CppAssets.Scripts.Unity.Bridge.BloonToSimulation

BloonExt.GetBloonToSim(this Bloon) Method

Return the existing BloonToSimulation for this specific Bloon.

public static BloonToSimulation GetBloonToSim(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

Il2CppAssets.Scripts.Unity.Bridge.BloonToSimulation

BloonExt.GetDisplayNode(this Bloon) Method

Return the DisplayNode for this bloon

public static DisplayNode GetDisplayNode(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

Il2CppAssets.Scripts.Simulation.Display.DisplayNode

BloonExt.GetFactory(this Bloon) Method

Return the Factory that creates Bloons

public static Factory<Bloon> GetFactory(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

Il2CppAssets.Scripts.Simulation.Factory.Factory

BloonExt.GetId(this Bloon) Method

Return the Id of this Bloon

public static ObjectId GetId(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

Il2CppAssets.Scripts.ObjectId

BloonExt.GetUnityDisplayNode(this Bloon) Method

Return the UnityDisplayNode for this bloon. Is apart of DisplayNode. Needed to modify sprites

public static UnityDisplayNode GetUnityDisplayNode(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

BloonExt.RemoveBloonStatus(this Bloon, bool, bool, bool) Method

Remove current statuses from bloon

public static void RemoveBloonStatus(this Bloon bloon, bool removeCamo, bool removeFortify, bool removeRegrow);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

the Bloon

removeCamo System.Boolean

Should remove camo if present?

removeFortify System.Boolean

Should remove fortify if present?

removeRegrow System.Boolean

Should remove regrow if present?

BloonExt.SetBloonStatus(this Bloon, bool, bool, bool) Method

Set the statuses of the bloon. Will change bloonModel if one exists with these statuses

public static void SetBloonStatus(this Bloon bloon, bool setCamo, bool setFortified, bool setRegrow);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

the Bloon

setCamo System.Boolean

Should have camo?

setFortified System.Boolean

Should have fortify?

setRegrow System.Boolean

Should have regrow?

BloonExt.SetCamo(this Bloon, bool) Method

Set bloon to be camo or not. Will change bloonModel to camo version if it exists

public static void SetCamo(this Bloon bloon, bool isCamo);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

the Bloon

isCamo System.Boolean

Should bloon be camo

BloonExt.SetFortified(this Bloon, bool) Method

Set bloon to be fortified or not. Will change bloonModel to fortified version if it exists

public static void SetFortified(this Bloon bloon, bool isFortified);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

the Bloon

isFortified System.Boolean

Should bloon be fortified

BloonExt.SetRegrow(this Bloon, bool) Method

Set bloon to be regrow or not. Will change bloonModel to regrow version if it exists

public static void SetRegrow(this Bloon bloon, bool isRegrow);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

the Bloon

isRegrow System.Boolean

Should bloon be regrow

BloonExt.WasBloonPopped(this Bloon) Method

Returns whether or not the bloon was popped rather than leaked.

public static bool WasBloonPopped(this Bloon bloon);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

System.Boolean
True if it was popped, false if it was leaked or not destroyed yet

BloonExt.WillPopBloon(this Bloon, Projectile) Method

Tests whether a project will pop this bloon

public static bool WillPopBloon(this Bloon bloon, Projectile projectile);

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

Returns

System.Boolean

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