Class SoldierComponent
- Namespace
- TDMaker.Core.Components
- Assembly
- TDMaker.Core.dll
Runtime ownership and enemy pairing for a soldier.
public sealed class SoldierComponent
- Inheritance
-
SoldierComponent
- Inherited Members
Constructors
SoldierComponent()
public SoldierComponent()
Properties
AtContact
Arrival flag from the last evaluation. External displacement can invalidate position before the next evaluation.
public bool AtContact { get; }
Property Value
ContactGoal
Last evaluated contact destination, distinct from the idle rally point.
public Vec2 ContactGoal { get; }
Property Value
ContactRank
Last evaluated one-based rank in the host's list; zero when unpaired.
public int ContactRank { get; }
Property Value
EnemyId
Paired enemy identifier, or zero.
public int EnemyId { get; }
Property Value
IsRallying
Whether the soldier must reach its new formation position before engaging.
public bool IsRallying { get; }
Property Value
OwnerId
Owning barracks entity identifier.
public int OwnerId { get; }
Property Value
RallyCenter
Center used for interception eligibility.
public Vec2 RallyCenter { get; }
Property Value
RallyPoint
Current idle destination.
public Vec2 RallyPoint { get; }
Property Value
SlotIndex
Population slot within the owning barracks.
public int SlotIndex { get; }