TCommonReplicator_SP

Server -> SP Client Like the AP case, the core payload is the same between fixed and independent: Input/Sync/Aux/Physics/Cues

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionSerialization.h

Include

#include "NetworkPredictionSerialization.h"

Syntax

template<typename InModelDef>
class TCommonReplicator_SP

Remarks

Server -> SP Client Like the AP case, the core payload is the same between fixed and independent: Input/Sync/Aux/Physics/Cues

There are actually 3 cases to consider here:

Fixed Tick: only sends server frame #

Independent Tick, remotely controlled: send total sim time, which comes from the server's TServerRecvData_Independent for the controlling client.

Independent Tick, locally controlled: send total sim time, which comes from the server's local VariableTickState.

Functions

Name Description

Public function Static

void

 

NetRecv

(
    const FNetSerializeParams& P,
    ClientRecvDataType& ClientRecvStat...,
    TModelDataStore< ModelDef >* D...
)

Public function Static

void

 

NetSend

(
    const FNetSerializeParams& P,
    FNetworkPredictionID ID,
    TModelDataStore< ModelDef >* D...,
    TInstanceData< ModelDef >* Ins...,
    int32 PendingFrame
)

Typedefs

Name

Description

ModelDef

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