Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementReplication.h |
Include |
#include "GameFramework/CharacterMovementReplication.h" |
struct FCharacterNetworkMoveDataContainer
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.
Name | Description | ||
---|---|---|---|
|
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. |
|
|
bHasOldMove |
Optional "old move" data, for redundant important old moves not yet ack'd. |
|
|
bHasPendingMove |
Optional pending data used in "dual moves". |
|
|
bIsDualHybridRootMotionMove |
||
|
NewMoveData |
||
|
OldMoveData |
||
|
PendingMoveData |
Name | Description | |
---|---|---|
|
FCharacterNetworkMoveDataContainer() |
Default constructor. |
Name | Description | |
---|---|---|
|
~FCharacterNetworkMoveDataContainer() |
Name | Description | ||
---|---|---|---|
|
ClientFillNetworkMoveData ( |
Passes through calls to ClientFillNetworkMoveData on each FCharacterNetworkMoveData matching the client moves. |
|
|
FCharacterNe... |
GetNewMoveData() |
|
|
FCharacterNe... |
GetOldMoveData() |
|
|
FCharacterNe... |
GetPendingMoveData() |
|
|
Serialize ( |
Serialize movement data. |