Class TrapBinding

Namespace
TDMaker.Core
Assembly
TDMaker.Core.dll

Pooled deployment state, valid only while present in Simulation.Traps; retain Id across removals.

public sealed class TrapBinding
Inheritance
TrapBinding
Inherited Members

Properties

ArmsAt

Time detection can begin.

public double ArmsAt { get; }

Property Value

double

CreatedAt

Creation-time lifetime origin.

public double CreatedAt { get; }

Property Value

double

Definition

Immutable authored behavior.

public TrapDef Definition { get; }

Property Value

TrapDef

DeploymentOrigin

Captured launch position, retained after source loss.

public Vec2 DeploymentOrigin { get; }

Property Value

Vec2

ExpiresAt

Lifetime end in fixed game time.

public double ExpiresAt { get; }

Property Value

double

Id

Monotonically assigned deployment identifier.

public int Id { get; }

Property Value

int

IsArmed

Whether the arming event has been processed.

public bool IsArmed { get; }

Property Value

bool

IsRemoving

Whether explicit removal is pending.

public bool IsRemoving { get; }

Property Value

bool

Phase

Observable automatic-placement phase.

public DeploymentPhase Phase { get; }

Property Value

DeploymentPhase

Plan

Automatic production plan, or null for legacy/manual traps.

public DeploymentPlanDef Plan { get; }

Property Value

DeploymentPlanDef

Position

Fixed world position.

public Vec2 Position { get; }

Property Value

Vec2

RemainingTriggers

Unconsumed activations.

public int RemainingTriggers { get; }

Property Value

int

SettleEndsAt

Landing preparation completion time, before the trap's arming delay.

public double SettleEndsAt { get; }

Property Value

double

SourceId

Optional owner/source entity.

public int SourceId { get; }

Property Value

int

TransitEndsAt

Flight completion time.

public double TransitEndsAt { get; }

Property Value

double