Class PathDestinationData

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

An exact point on a level path, baked into PathDestinationDef. Validated against the level when used: an invalid destination (path, lane or node outside the path's entry..exit range) moves nothing.

public sealed class PathDestinationData
Inheritance
PathDestinationData
Inherited Members

Constructors

PathDestinationData()

public PathDestinationData()

Fields

clearEffects

Also removes the unit's attached effects.

public bool clearEffects

Field Value

bool

laneIndex

Fixed lane, or -1 to keep the unit's lane (modulo the destination lane count).

[Min(-1)]
public int laneIndex

Field Value

int

nodeIndex

Segment start node; must lie between the path's entry and exit nodes.

[Min(0)]
public int nodeIndex

Field Value

int

pathIndex

Destination path index (order of the level's paths).

[Min(0)]
public int pathIndex

Field Value

int

progress

Fraction along the destination segment (must be zero on the exit node).

[Range(0, 1)]
public float progress

Field Value

float

Methods

ToDef()

Bakes the destination.

public PathDestinationDef ToDef()

Returns

PathDestinationDef