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

bool

ContactGoal

Last evaluated contact destination, distinct from the idle rally point.

public Vec2 ContactGoal { get; }

Property Value

Vec2

ContactRank

Last evaluated one-based rank in the host's list; zero when unpaired.

public int ContactRank { get; }

Property Value

int

EnemyId

Paired enemy identifier, or zero.

public int EnemyId { get; }

Property Value

int

IsRallying

Whether the soldier must reach its new formation position before engaging.

public bool IsRallying { get; }

Property Value

bool

OwnerId

Owning barracks entity identifier.

public int OwnerId { get; }

Property Value

int

RallyCenter

Center used for interception eligibility.

public Vec2 RallyCenter { get; }

Property Value

Vec2

RallyPoint

Current idle destination.

public Vec2 RallyPoint { get; }

Property Value

Vec2

SlotIndex

Population slot within the owning barracks.

public int SlotIndex { get; }

Property Value

int