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

int

Priority

Runtime target priority, initialized from the template and retained across upgrades.

public TargetPriority Priority { get; }

Property Value

TargetPriority

SlotIndex

Occupied build slot index.

public int SlotIndex { get; }

Property Value

int

TotalSpent

Total gold spent on this tower.

public int TotalSpent { get; }

Property Value

int

Methods

GetAbilityRank(int)

Reads an ability's purchased rank; zero means unpurchased.

public int GetAbilityRank(int index)

Parameters

index int

Returns

int