Table of Contents

Struct KCCInputReplicateData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Represents a single frame of input data for KCC character replication and prediction. Used internally by SetInputs(ref KCCInputReplicateData) and PlayerInputController.

public struct KCCInputReplicateData : IReplicateData
Implements
IReplicateData
Inherited Members

Constructors

KCCInputReplicateData(float, float, int, Vector3, Quaternion)

Constructs a new input replicate data frame with movement and camera info.

public KCCInputReplicateData(float moveAxisForward, float moveAxisRight, int moveFlags, Vector3 cameraPosition, Quaternion cameraRotation)

Parameters

moveAxisForward float

Forward axis value.

moveAxisRight float

Right axis value.

moveFlags int

Movement flags bitmask.

cameraPosition Vector3

Camera position.

cameraRotation Quaternion

Camera rotation.

Fields

CameraPosition

Camera position for this input frame.

public Vector3 CameraPosition

Field Value

Vector3

CameraRotation

Camera rotation for this input frame.

public Quaternion CameraRotation

Field Value

Quaternion

MoveAxisForward

Forward movement axis value (W/S or up/down).

public float MoveAxisForward

Field Value

float

MoveAxisRight

Right movement axis value (A/D or left/right).

public float MoveAxisRight

Field Value

float

MoveFlags

Bitmask of movement flags (jump, crouch, sprint, etc). Each flag is a bit position defined by KCCMoveFlags.

public int MoveFlags

Field Value

int

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