Class TowerComponent
- Namespace
- TDMaker.Core.Components
- Assembly
- TDMaker.Core.dll
Runtime tower construction and economy state.
public sealed class TowerComponent
- Inheritance
-
TowerComponent
- Inherited Members
Constructors
TowerComponent()
public TowerComponent()
Properties
AbilityCount
Number of purchasable ability slots.
public int AbilityCount { get; }
Property Value
Priority
Runtime target priority, initialized from the template and retained across upgrades.
public TargetPriority Priority { get; }
Property Value
SlotIndex
Occupied build slot index.
public int SlotIndex { get; }
Property Value
TotalSpent
Total gold spent on this tower.
public int TotalSpent { get; }
Property Value
Methods
GetAbilityRank(int)
Reads an ability's purchased rank; zero means unpurchased.
public int GetAbilityRank(int index)
Parameters
indexint