Struct KCCPlatform.ReconcileData
Reconcile data for the platform. Contains all state read during PerformReplicate(ReplicateData, ReplicateState, Channel) to ensure deterministic replay after reconciliation.
public struct KCCPlatform.ReconcileData : IReconcileData
- Implements
-
IReconcileData
- Inherited Members
Constructors
ReconcileData(Vector3, byte)
Creates reconcile data capturing the platform's full simulation state.
public ReconcileData(Vector3 position, byte goalIndex)
Parameters
positionVector3Current world position of the platform.
goalIndexbyteIndex of the current movement goal.
Fields
GoalIndex
Index into the goals list indicating which waypoint the platform is moving toward.
public byte GoalIndex
Field Value
Position
World position of the platform at this tick.
public Vector3 Position
Field Value
- Vector3
Sequence
Server-side send counter, stamped by Server_SendReconcileRpc through
ReconcileSequenceStamper on every reconcile actually written, wrapping at 255.
public byte Sequence
Field Value
Remarks
The delta chain's loss detector, the same one CharacterReconcileData.Sequence
carries and for the same reason: reconciles ride the unreliable state datagram and
each delta is difference-encoded against the previous state the server SENT, so a
lost datagram would otherwise have every later delta decode against a baseline this
client never received — a deck standing in the wrong place, and every rider's
footing with it, for up to a second until the periodic absolute snapshot. The reader
requires prev.Sequence + 1 and rejects the packet otherwise; a loss then costs
"no correction until the next snapshot", which for a deterministic platform is no
visible cost at all. This matters MORE here than on a character: the platform is the
one object whose reconcile fans out to every observer.
Methods
Dispose()
Allows for any cleanup when the data is being discarded.
public void Dispose()
GetTick()
Local tick when the data was created.
public uint GetTick()
Returns
SetTick(uint)
Sets the local tick when data was created.
public void SetTick(uint value)
Parameters
valueuint