Protocol
OwnerStateMsg
Authoritative post-simulation state of a predicted entity, for its owner's reconciliation.
generated from the sources
Struct in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Protocol/Messages.cspublic struct OwnerStateMsgAuthoritative post-simulation state of a predicted entity, for its owner's reconciliation. Sent every tick, whether or not the owner's input for that tick had arrived, so the owner always has something to reconcile against and learns how early its inputs are landing (InputLead).
Fields
NetId
public ulong NetId;Epoch
public uint Epoch;Tick
public uint Tick;The tick this state is the result of.
LastInputTick
public uint LastInputTick;Tick of the newest real (not repeated) input the worker has simulated.
InputLead
public sbyte InputLead;Worst (smallest) lead of the owner's inputs since the previous report: frame tick minus the worker's tick when the frame arrived. Inputs need a lead of at least 1 to be simulated; NoInputLead when nothing arrived.
OwnerClientId
public uint OwnerClientId;State
public byte[] State;NoInputLead
public const sbyte NoInputLead = sbyte.MinValue;Methods
Write
public void Write(NetworkWriter w);Read
public static OwnerStateMsg Read(NetworkReader r);