Class MeleeDef

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

Immutable melee attack settings.

public sealed class MeleeDef
Inheritance
MeleeDef
Inherited Members

Constructors

MeleeDef(DamageDef, float, float)

Creates melee data.

public MeleeDef(DamageDef damage, float cooldown, float range)

Parameters

damage DamageDef
cooldown float
range float

Properties

Cooldown

Seconds between attacks.

public float Cooldown { get; }

Property Value

float

Cycle

Strike timing within one attack cycle.

public AttackCycleDef Cycle { get; }

Property Value

AttackCycleDef

Damage

Damage delivered by each attack.

public DamageDef Damage { get; }

Property Value

DamageDef

Range

Contact range.

public float Range { get; }

Property Value

float

Methods

WithCycle(AttackCycleDef)

Copies a melee attack with explicit strike timing.

public MeleeDef WithCycle(AttackCycleDef cycle)

Parameters

cycle AttackCycleDef

Returns

MeleeDef