Class PathFollowComponent
- Namespace
- TDMaker.Core.Components
- Assembly
- TDMaker.Core.dll
Path and engagement state for an enemy.
public sealed class PathFollowComponent
- Inheritance
-
PathFollowComponent
- Inherited Members
Constructors
PathFollowComponent()
public PathFollowComponent()
Properties
BlockerCount
Number of assigned soldiers in current contact-rank order.
public int BlockerCount { get; }
Property Value
BlockerId
First contact-rank soldier identifier, or zero. It need not be the retained melee representative.
public int BlockerId { get; }
Property Value
IsConnecting
Whether the unit is crossing to the current path's entry from a previous path.
public bool IsConnecting { get; }
Property Value
IsWaitingForContact
Whether the observed representative has not reached its contact goal.
public bool IsWaitingForContact { get; }
Property Value
LaneIndex
Sub-lane index.
public int LaneIndex { get; }
Property Value
NodeIndex
Index of the current segment's starting node.
public int NodeIndex { get; }
Property Value
PathIndex
Level path index.
public int PathIndex { get; }
Property Value
ReachedExit
Whether the unit has crossed the exit.
public bool ReachedExit { get; }
Property Value
RemainingDistance
Distance remaining to the exit, used for target priority.
public float RemainingDistance { get; }
Property Value
RepresentativeId
Retained melee representative. May differ from BlockerId after rank rotation; zero before observation/after loss.
public int RepresentativeId { get; }
Property Value
SegmentProgress
Normalized progress along the current segment.
public float SegmentProgress { get; }
Property Value
TravelAngle
Last general travel angle in radians, retained while stopped.
public float TravelAngle { get; }
Property Value
Methods
GetBlockerId(int)
Reads an assigned soldier identifier by engagement rank.
public int GetBlockerId(int index)
Parameters
indexint