Class StrikeData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Scattered, individually timed area strikes for one cast, baked into StrikeSequenceDef.
public sealed class StrikeData
- Inheritance
-
StrikeData
- Inherited Members
Constructors
StrikeData()
public StrikeData()
Fields
count
Strikes per cast.
[Min(1)]
public int count
Field Value
damage
Area damage evaluated at each impact (radius must be positive).
public DamageData damage
Field Value
delay
Delay before the first launch.
[Min(0)]
public float delay
Field Value
interval
Delay between launches.
[Min(0)]
public float interval
Field Value
launchOffset
Launch offset relative to each impact point.
public Vector2 launchOffset
Field Value
- Vector2
placementAttempts
Placement attempts per strike before falling back to the centre.
[Min(1)]
public int placementAttempts
Field Value
projectile
Projectile used for each strike; empty uses a default falling shot.
public ProjectileAsset projectile
Field Value
scatterRadius
Scatter radius around the target point (range ellipse).
[Min(0)]
public float scatterRadius
Field Value
targetsFlying
Allows flying recipients.
public bool targetsFlying
Field Value
targetsGround
Allows ground recipients.
public bool targetsGround
Field Value
Methods
ToDef()
Bakes the strike sequence.
public StrikeSequenceDef ToDef()