Vixen
02b45cc4
csharp
public record class RealmHandoff

The volatile simulation state, moved from one realm to another. Never the inventory.

Read the guide page for this →

Remarks

ADR-021: durable state moves by lease and stays in the database. What travels here is position, velocity, buffs with their remaining durations, cooldowns, combat state, the animation graph's position — everything whose loss would be a visible glitch and whose duplication would be worth nothing.

⚠ If this payload is lost, nothing durable is at risk. That is the property that makes an abort cheap, and it is why the split between this and the lease is the single most load-bearing decision in the document.

Fields and properties (4)

  • public PlayerKey Player

    Whose.

  • public long LeaseEpoch

    The epoch the target has taken. Every durable write it makes names this.

  • public long AtTick

    The source tick the state was sampled at.

  • public ImmutableArray<byte> Components

    The encoded components, as the replication codec wrote them.

Methods (2)

  • public RealmHandoff(PlayerKey Player, long LeaseEpoch, long AtTick, ImmutableArray<byte> Components)

    The volatile simulation state, moved from one realm to another. Never the inventory.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (2)

  • HandoffCodecVixen.Live.Realm
  • HandoffCodecTestsVixen.Live.Realm.Tests