FCharacterNetworkMoveDataContainer

Struct used for network RPC parameters between client/server by [ACharacter](API\Runtime\Engine\GameFramework\ACharacter) and [UCharacterMovementComponent](API\Runtime\Engine\GameFramework\UCharacterMovementComponent).

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/CharacterMovementReplication.h"

Syntax

struct FCharacterNetworkMoveDataContainer

Remarks

Struct used for network RPC parameters between client/server by ACharacter and UCharacterMovementComponent. To extend network move data and add custom parameters, you typically override this struct with a custom derived struct and set the CharacterMovementComponent to use your container with UCharacterMovementComponent::SetNetworkMoveDataContainer(). Your derived struct would then typically (in the constructor) replace the NewMoveData, PendingMoveData, and OldMoveData pointers to use your own instances of a struct derived from FCharacterNetworkMoveData, where you add custom fields and implement custom serialization to be able to pack and unpack your own additional data.

Variables

Name Description

Public variable

bool

 

bDisableCombinedScopedMove

True if we want to disable a scoped move around both dual moves (optional from bEnableServerDualMoveScopedMovementUpdates), typically set if bForceNoCombine was true which can indicate an important change in moves.

Public variable

bool

 

bHasOldMove

Optional "old move" data, for redundant important old moves not yet ack'd.

Public variable

bool

 

bHasPendingMove

Optional pending data used in "dual moves".

Public variable

bool

 

bIsDualHybridRootMotionMove

Protected variable

FCharacterNetwo...

 

NewMoveData

Protected variable

FCharacterNetwo...

 

OldMoveData

Protected variable

FCharacterNetwo...

 

PendingMoveData

Constructors

Name Description

Public function

FCharacterNetworkMoveDataContainer()

Default constructor.

Destructors

Functions

Name Description

Public function Virtual

void

 

ClientFillNetworkMoveData

(
    const FSavedMove_Character* Cl...,
    const FSavedMove_Character* Cl...,
    const FSavedMove_Character* Cl...
)

Passes through calls to ClientFillNetworkMoveData on each FCharacterNetworkMoveData matching the client moves.

Public function Const

FCharacterNe...

 

GetNewMoveData()

Public function Const

FCharacterNe...

 

GetOldMoveData()

Public function Const

FCharacterNe...

 

GetPendingMoveData()

Public function Virtual

bool

 

Serialize

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

Serialize movement data.

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