Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
References
Module | NetworkPrediction |
Header | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionSerialization.h |
Include | #include "NetworkPredictionSerialization.h" |
Syntax
struct FNetworkPredictionSerialization
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | ReadCompressedFrame
(
FArchive& Ar, |
Disabled right now: this is causing issues with JIP. |
![]() ![]() |
void | SerializeDeltaMS
(
FArchive& Ar, |
For serializing DeltaMS, expected to be small (< 1000) |
![]() ![]() |
int32 | SerializeFrame
(
FArchive& Ar, |
Helper to serialize an int32 frame as 8 bits. Returns the unpacked value (this will be same as input in the save path) |
![]() ![]() |
void | SerializeTimeMS
(
FArchive& Ar, |
For serializing timestamps. |
![]() ![]() |
void | WriteCompressedFrame
(
FArchive& Ar, |
Disabled right now: this is causing issues with JIP. |
Constants
Name | Description |
---|---|
FRAME_ERROR_THRESHOLD | This is the threshold at which we would wrap around and incorrectly assign a frame on the receiving side. |
MAX_FRAME_WRITE | Abs max value we encode into the bit writer. |
NUM_BITS_FRAME | How many bits we use to NetSerialize Frame numbers. |