Skip to Main Content

BTD_Mod_Helper​.Extensions​.ProfileModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

ProfileModelExt Class

Extensions for ProfileModels

public static class ProfileModelExt

Inheritance System.Object  ProfileModelExt

Methods

ProfileModelExt.UnlockTower(this ProfileModel, string, bool) Method

Add a tower to the list of UnlockedTowers only if the TowerModel is in Game.instance.model.towers

public static bool UnlockTower(this ProfileModel profileModel, string towerId, bool unlockIfTowerModelExists);

Parameters

profileModel Il2CppAssets.Scripts.Models.Profile.ProfileModel

towerId System.String

The ID of the tower you want to unlock

unlockIfTowerModelExists System.Boolean

If set to true the TowerModel will only be unlocked if it has been registered in
the game

Returns

System.Boolean
Returns whether or not the tower was unlocked

ProfileModelExt.UnlockTower(this ProfileModel, string) Method

Add a tower to the list of UnlockedTowers

public static void UnlockTower(this ProfileModel profileModel, string towerId);

Parameters

profileModel Il2CppAssets.Scripts.Models.Profile.ProfileModel

towerId System.String

The ID of the tower you want to unlock

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