Nebula
Protocol

AuthorityTransferMsg

The authority event.

generated from the sources
public struct AuthorityTransferMsg

The authority event. Carries the sender's exact final state so the receiver snaps to it and never computes a starting state of its own, plus the not-yet-simulated inputs so the input stream continues without a gap.

Fields

Entity

public EntitySpawnMsg Entity;

NewEpoch

public uint NewEpoch;

PendingInputs

public byte[] PendingInputs;

HandoverState

public byte[] HandoverState;

Per-behaviour handover-only state (NetworkIdentity.WriteHandoverState).

Methods

Write

public void Write(NetworkWriter w);

Read

public static AuthorityTransferMsg Read(NetworkReader r);

On this page