Table of Contents

Class KCCPlatformReplicateDataDeltaSerializer

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Delta serializers for KCCPlatform.ReplicateData.

public static class KCCPlatformReplicateDataDeltaSerializer
Inheritance
KCCPlatformReplicateDataDeltaSerializer
Inherited Members

Remarks

On the 4.6.12 fork a type without these logged "Write delta method not found" on every tick it serialized one — 9,627 errors with stack traces in a four-minute session, because a platform ticks whether or not anybody is near it. FishNet's delta prediction now writes a type without both delta serializers with its regular serializer instead, so they are no longer what stops an error stream; they are kept so the platform's replicate packet takes the same delta path as every other prediction type, and DeltaSerializerRegistrationTests can keep requiring a delta pair for every [Replicate]/[Reconcile] payload.

Methods

ReadKCCPlatformReplicateData(Reader)

Reads the replicate payload, which is empty.

public static KCCPlatform.ReplicateData ReadKCCPlatformReplicateData(this Reader reader)

Parameters

reader Reader

Returns

KCCPlatform.ReplicateData

WriteKCCPlatformReplicateData(Writer, ReplicateData)

Writes the replicate payload, which is empty.

public static void WriteKCCPlatformReplicateData(this Writer writer, KCCPlatform.ReplicateData value)

Parameters

writer Writer
value KCCPlatform.ReplicateData

Remarks

KCCPlatform.ReplicateData carries nothing but its tick, and the tick is FishNet's to write — the character serializers beside this one do not write theirs either. Platform movement is autonomous, so there is no input to send: the struct exists to satisfy the IReplicateData contract, not to carry data.

The method still has to exist. An empty body and no method at all are very different things here — the second is what produces the error this file removes.