FCharacterNetworkMoveData encapsulates a client move that is sent to the server for UCharacterMovementComponent networking. 更多...
#include <CharacterMovementReplication.h>
Public 成员函数 | |
| virtual void | ClientFillNetworkMoveData (const FSavedMove_Character &ClientMove, ENetworkMoveType MoveType) |
| Given a FSavedMove_Character from UCharacterMovementComponent, fill in data in this struct with relevant movement data. 更多... | |
| virtual bool | Serialize (UCharacterMovementComponent &CharacterMovement, FArchive &Ar, UPackageMap *PackageMap, ENetworkMoveType MoveType) |
| Serialize the data in this struct to or from the given FArchive. 更多... | |
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).
|
virtual |
Given a FSavedMove_Character from UCharacterMovementComponent, fill in data in this struct with relevant movement data.
Note that the instance of the FSavedMove_Character is likely a custom struct of a derived struct of your own, if you have added your own saved move data.
|
virtual |
Serialize the data in this struct to or from the given FArchive.
This packs or unpacks the data in to a variable-sized data stream that is sent over the network from client to server.