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
laneIndex
Fixed lane, or -1 to keep the unit's lane (modulo the destination lane count).
[Min(-1)]
public int laneIndex
Field Value
nodeIndex
Segment start node; must lie between the path's entry and exit nodes.
[Min(0)]
public int nodeIndex
Field Value
pathIndex
Destination path index (order of the level's paths).
[Min(0)]
public int pathIndex
Field Value
progress
Fraction along the destination segment (must be zero on the exit node).
[Range(0, 1)]
public float progress
Field Value
Methods
ToDef()
Bakes the destination.
public PathDestinationDef ToDef()