FCharacterNetworkMoveData

Client to Server movement data.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementReplication.h

Include

#include "GameFramework/CharacterMovementReplication.h"

Syntax

struct FCharacterNetworkMoveData

Remarks

FCharacterNetworkMoveData encapsulates a client move that is sent to the server for UCharacterMovementComponent networking.

Adding custom data to the network move is accomplished by deriving from this struct, adding new data members, implementing ClientFillNetworkMoveData(), implementing Serialize(), and setting up the UCharacterMovementComponent to use an instance of a custom FCharacterNetworkMoveDataContainer (see that struct for more details).

Variables

Name Description

Public variable

FVector_NetQuan...

 

Acceleration

Public variable

uint8

 

CompressedMoveFlags

Public variable

FRotator

 

ControlRotation

Public variable

FVector_NetQuan...

 

Location

Public variable

UPrimitiveCompo...

 

MovementBase

Public variable

FName

 

MovementBaseBoneName

Public variable

uint8

 

MovementMode

Public variable

ENetworkMoveTyp...

 

NetworkMoveType

Indicates whether this was the latest new move, a pending/dual move, or old important move.

Public variable

float

 

TimeStamp

Constructors

Name Description

Public function

FCharacterNetworkMoveData()

Destructors

Name Description

Public function Virtual

~FCharacterNetworkMoveData()

Functions

Name Description

Public function Virtual

void

 

ClientFillNetworkMoveData

(
    const FSavedMove_Character& Client...,
    ENetworkMoveType MoveType
)

Given a FSavedMove_Character from UCharacterMovementComponent, fill in data in this struct with relevant movement data.

Public function Virtual

bool

 

Serialize

(
    UCharacterMovementComponent& Chara...,
    FArchive& Ar,
    UPackageMap* PackageMap,
    ENetworkMoveType MoveType
)

Serialize the data in this struct to or from the given FArchive.

Enums

Name

Description

Public enum

ENetworkMoveType

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss