Table of Contents

Class KinematicCharacterMotorStateDeltaSerializer

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Custom delta serializers for KinematicCharacterController.KinematicCharacterMotorState.

Delta serializer: Writes a 2-byte bitmask over 14 bit positions carrying 13 fields (bit 4 is a retired gap — see the constants below) followed by delta-encoded values for only the changed fields. On a typical grounded walking tick, only Position, Rotation, BaseVelocity, and GroundingStatus change. On an idle tick where the character stands still this writer declines and sends nothing at all. Measured figures live in PredictionBandwidthBenchmarkTests rather than here, where they cannot go stale silently.

The nested KinematicCharacterController.CharacterTransientGroundingReport uses its own delta serializer, so savings compound for unchanged grounding normals.

public static class KinematicCharacterMotorStateDeltaSerializer
Inheritance
KinematicCharacterMotorStateDeltaSerializer
Inherited Members

Methods

ReadKinematicCharacterMotorState(Reader)

Custom full deserializer: reads all fields of KinematicCharacterController.KinematicCharacterMotorState.

public static KinematicCharacterMotorState ReadKinematicCharacterMotorState(this Reader reader)

Parameters

reader Reader

Returns

KinematicCharacterMotorState

WriteKinematicCharacterMotorState(Writer, KinematicCharacterMotorState)

Custom full serializer: writes all fields of KinematicCharacterController.KinematicCharacterMotorState. Nested KinematicCharacterController.CharacterTransientGroundingReport uses its full serializer. Extension method discovered by FishNet codegen via naming convention.

public static void WriteKinematicCharacterMotorState(this Writer writer, KinematicCharacterMotorState value)

Parameters

writer Writer
value KinematicCharacterMotorState