Class KCCPlatformReplicateDataDeltaSerializer
Delta serializers for KCCPlatform.ReplicateData.
public static class KCCPlatformReplicateDataDeltaSerializer
- Inheritance
-
KCCPlatformReplicateDataDeltaSerializer
- Inherited Members
Remarks
Without these FishNet has no delta method for the type and logs
"Write delta method not found" on every tick it serializes one. A platform is a
TickNetworkBehaviour that ticks whether or not anybody is near it, so that is a
permanent error stream for as long as the scene is loaded — 9,627 of them, each with a full
stack trace, in a four-minute session before this existed.
Methods
ReadKCCPlatformReplicateData(Reader)
Reads the replicate payload, which is empty.
public static KCCPlatform.ReplicateData ReadKCCPlatformReplicateData(this Reader reader)
Parameters
readerReader
Returns
WriteKCCPlatformReplicateData(Writer, ReplicateData)
Writes the replicate payload, which is empty.
public static void WriteKCCPlatformReplicateData(this Writer writer, KCCPlatform.ReplicateData value)
Parameters
writerWritervalueKCCPlatform.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.