Table of Contents
A ModDisplay that will automatically apply to a ModTower for specific tiers
public abstract class ModTowerDisplay : BTD_Mod_Helper.Api.Display.ModDisplay
Inheritance System.Object ModContent ModDisplay ModTowerDisplay
Derived
↳ ModTowerCustomDisplay
↳ ModTowerDisplay<T>
Number of different Paragon displays that are used by default
protected const int TotalParagonDisplays = 5;
The DisplayCategory to use for the DisplayModel
public override DisplayCategory DisplayCategory { get; }
Il2CppAssets.Scripts.Models.GenericBehaviors.DisplayCategory
A number between 0 and 4 (inclusive) representing which set of paragon degrees this display applies to
0: Degree 1 - 20
1: Degree 21 - 40
2: Degree 41 - 60
3: Degree 61 - 80
4: Degree 81 - 100
If you don't have one for every index, then the next highest one will be used
public virtual int ParagonDisplayIndex { get; }
The ModTower that this ModDisplay is used for
public abstract BTD_Mod_Helper.Api.Towers.ModTower Tower { get; }
Applies this ModTowerDisplay to the towerModel. Override to change how this applies, i.e. making it
apply to an AttackModel instead
public virtual void ApplyToTower(TowerModel towerModel);
towerModel
Il2CppAssets.Scripts.Models.Towers.TowerModel
If the tower tiers make it count as a Paragon
protected bool IsParagon(params int[] tiers);
tiers
System.Int32[]
Alters the UnityDisplayNode that was copied from the one used by BaseDisplay
By default, this will change the main texture of the first SkinnedMeshRenderer of the node to that of a
png with the same name as the class
public override void ModifyDisplayNode(UnityDisplayNode node);
node
Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode
The UnityDisplayNode
Returns true if this display should be used by its Tower for the given tiers
public abstract bool UseForTower(params int[] tiers);
tiers
System.Int32[]
The potential tiers of the tower
System.Boolean
If the Tower should have this display