Table of Contents

Struct RealmsAccessor

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

What a system reads of the realm policy this tick (Realms): each realm's state, rate divisor and the delta time a cluster of it integrates over.

public readonly struct RealmsAccessor
Inherited Members

Methods

DeltaTime(RealmId)

The time a cluster of realm integrates over this run: AmortizedDeltaTime × the realm's divisor when this run's dispatch was strided (it saw the cluster once in that many runs), the amortized delta time otherwise.

public float DeltaTime(RealmId realm)

Parameters

realm RealmId

Returns

float

DivisorOf(RealmId)

The realm's rate divisor this tick: 1 when observed, its UnobservedTickDivisor otherwise.

public int DivisorOf(RealmId realm)

Parameters

realm RealmId

Returns

int

IsRunnable(RealmId)

True when realm's clusters are dispatched this tick.

public bool IsRunnable(RealmId realm)

Parameters

realm RealmId

Returns

bool

StateOf(RealmId)

What realm is doing this tick. Refuses an unregistered id.

public RealmRunState StateOf(RealmId realm)

Parameters

realm RealmId

Returns

RealmRunState

TicksPerVisit(RealmId)

Ticks one visit of a cluster of realm stands for in THIS run: the realm's divisor when this system's dispatch was strided, 1 otherwise (a Full or change-filtered system sees every cluster every run). What a fixed-step simulation multiplies by.

public int TicksPerVisit(RealmId realm)

Parameters

realm RealmId

Returns

int