Class EngagementHostData

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

Where blockers stand around this enemy (the engagement host). Blockers stand on the side the enemy is walking toward, host X + guest X world units away horizontally, shifted by the summed Y values. The second and third blocker take rows at −/+ rowSpacing on Y (pulled back by half of it on X); later blockers repeat the three places. Independent of melee range. Typical X: half the enemy's drawn body width plus a small gap.

public sealed class EngagementHostData
Inheritance
EngagementHostData
Inherited Members

Constructors

EngagementHostData()

public EngagementHostData()

Fields

contactBias

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

[Tooltip("This enemy's share of the horizontal distance to its blockers (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

rowSpacing

World-Y distance of the second and third blocker rows.

[Tooltip("World-Y distance of the second and third blockers' rows; they also stand half of it closer on X.")]
[Min(0.01)]
public float rowSpacing

Field Value

float

Methods

ToDef()

Bakes the host geometry (the guest share keeps its default; it comes from the blocker's own template).

public MeleeEngagementDef ToDef()

Returns

MeleeEngagementDef