Class AbilityData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
A purchasable tower ability or a hero skill with one or more ranks.
public sealed class AbilityData
- Inheritance
-
AbilityData
- Inherited Members
Constructors
AbilityData()
public AbilityData()
Fields
description
Short description shown as a tooltip.
[TextArea]
public string description
Field Value
displayName
Name shown on buttons.
public string displayName
Field Value
id
Ability id; blank uses the display name.
public string id
Field Value
ranks
Ranks in purchase order.
public List<AbilityRankData> ranks
Field Value
resetCooldownOnPurchase
Resets this ability's timers whenever a rank is bought.
public bool resetCooldownOnPurchase
Field Value
Properties
Id
The resolved id.
public string Id { get; }
Property Value
RankCount
Number of non-null ranks.
public int RankCount { get; }
Property Value
Methods
ToExecution()
Bakes the executable rank payloads.
public AbilityExecutionDef ToExecution()
Returns
ToHeroSkill()
Bakes a hero skill (costs in skill points, with required levels).
public HeroSkillDef ToHeroSkill()
Returns
ToTowerAbility()
Bakes a purchasable tower ability (costs in gold).
public AbilityDef ToTowerAbility()