Class EngagementGuestData

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

Where this soldier or hero stands when it blocks an enemy (the engagement guest): its share of the horizontal gap, added to the enemy's share. See EngagementHostData.

public sealed class EngagementGuestData
Inheritance
EngagementGuestData
Inherited Members

Constructors

EngagementGuestData()

public EngagementGuestData()

Fields

contactBias

This unit's share of the horizontal gap (X, at least 0) and a signed world-Y shift (Y).

[Tooltip("This unit's share of the horizontal distance to the enemy it blocks (X ≥ 0) and a signed world-Y shift (Y). Usually half the drawn body width plus a small gap.")]
public Vector2 contactBias

Field Value

Vector2

Methods

ToDef()

Bakes the guest geometry (the host share and row spacing keep their defaults; they come from the enemy).

public MeleeEngagementDef ToDef()

Returns

MeleeEngagementDef