Class MeleeDef
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
Properties
Cooldown
Seconds between attacks.
public float Cooldown { get; }
Property Value
Cycle
Strike timing within one attack cycle.
public AttackCycleDef Cycle { get; }
Property Value
Damage
Damage delivered by each attack.
public DamageDef Damage { get; }
Property Value
Range
Contact range.
public float Range { get; }
Property Value
Methods
WithCycle(AttackCycleDef)
Copies a melee attack with explicit strike timing.
public MeleeDef WithCycle(AttackCycleDef cycle)
Parameters
cycleAttackCycleDef