Table of Contents

Struct KCCPlatform.ReconcileData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

position Vector3

Current world position of the platform.

goalIndex byte

Index 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

byte

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

byte

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

uint

SetTick(uint)

Sets the local tick when data was created.

public void SetTick(uint value)

Parameters

value uint