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

int

damage

Area damage evaluated at each impact (radius must be positive).

public DamageData damage

Field Value

DamageData

delay

Delay before the first launch.

[Min(0)]
public float delay

Field Value

float

interval

Delay between launches.

[Min(0)]
public float interval

Field Value

float

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

int

projectile

Projectile used for each strike; empty uses a default falling shot.

public ProjectileAsset projectile

Field Value

ProjectileAsset

scatterRadius

Scatter radius around the target point (range ellipse).

[Min(0)]
public float scatterRadius

Field Value

float

targetsFlying

Allows flying recipients.

public bool targetsFlying

Field Value

bool

targetsGround

Allows ground recipients.

public bool targetsGround

Field Value

bool

Methods

ToDef()

Bakes the strike sequence.

public StrikeSequenceDef ToDef()

Returns

StrikeSequenceDef