Class StrikeSequenceDef

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

Individually timed and scattered impacts for a single cast.

public sealed class StrikeSequenceDef
Inheritance
StrikeSequenceDef
Inherited Members

Constructors

StrikeSequenceDef(DamageDef, ProjectileDef, int, float, float, float, int, Vec2, bool, bool)

Creates a strike sequence with separately scheduled hits.

public StrikeSequenceDef(DamageDef damage, ProjectileDef projectile, int count, float interval, float delay = 0, float scatterRadius = 0, int placementAttempts = 1, Vec2 launchOffset = default, bool targetsFlying = true, bool targetsGround = true)

Parameters

damage DamageDef
projectile ProjectileDef
count int
interval float
delay float
scatterRadius float
placementAttempts int
launchOffset Vec2
targetsFlying bool
targetsGround bool

Properties

Count

Strike count.

public int Count { get; }

Property Value

int

Damage

Damage evaluated independently at each impact.

public DamageDef Damage { get; }

Property Value

DamageDef

Delay

Delay before the first launch.

public float Delay { get; }

Property Value

float

Interval

Delay between launches.

public float Interval { get; }

Property Value

float

LaunchOffset

Launch offset relative to each impact point.

public Vec2 LaunchOffset { get; }

Property Value

Vec2

PlacementAttempts

Maximum placement attempts per strike, followed by the validated center.

public int PlacementAttempts { get; }

Property Value

int

Projectile

Travel settings for each strike.

public ProjectileDef Projectile { get; }

Property Value

ProjectileDef

ScatterRadius

Ellipse radius used for seeded scatter.

public float ScatterRadius { get; }

Property Value

float

TargetsFlying

Allows airborne recipients.

public bool TargetsFlying { get; }

Property Value

bool

TargetsGround

Allows ground recipients.

public bool TargetsGround { get; }

Property Value

bool