Class AbilityDef

Namespace
TDMaker.Core.Defs
Assembly
TDMaker.Core.dll

A purchasable ability slot with optional executable rank payloads.

public sealed class AbilityDef
Inheritance
AbilityDef
Inherited Members

Constructors

AbilityDef(string, params int[])

Creates an ability slot.

public AbilityDef(string id, params int[] rankCosts)

Parameters

id string
rankCosts int[]

AbilityDef(AbilityExecutionDef, string, params int[])

Creates a purchasable ability with executable ranks while retaining the original constructor.

public AbilityDef(AbilityExecutionDef execution, string id, params int[] rankCosts)

Parameters

execution AbilityExecutionDef
id string
rankCosts int[]

Properties

Execution

Executable rank payloads; null preserves a data-only legacy ability.

public AbilityExecutionDef Execution { get; }

Property Value

AbilityExecutionDef

Id

Author-defined ability identifier.

public string Id { get; }

Property Value

string

RankCosts

Costs for successive purchase ranks.

public IReadOnlyList<int> RankCosts { get; }

Property Value

IReadOnlyList<int>