TNetSimCueDispatcher

Templated cue dispatcher that can be specialized per networking model definition. This is what the system actually uses internally, but is not exposed to user code.

Windows
MacOS
Linux

Inheritance Hierarchy

FNetSimCueDispatcher

TNetSimCueDispatcher

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkedSimulationModelCues.h"

Syntax

template<typename Model>
struct TNetSimCueDispatcher : public FNetSimCueDispatcher

Remarks

Templated cue dispatcher that can be specialized per networking model definition. This is what the system actually uses internally, but is not exposed to user code.

Functions

Name Description

Public function Const

void

 

ClearMaxDispatchTime()

Public function

void

 

DispatchCueRecord

(
    T& Handler,
    FNetworkSimTime CurrentSimTime
)

Dispatches and prunes saved/transient cues.

Public function

void

 

NetSerializeSavedCues

(
    FArchive& Ar,
    ENetSimCueReplicationTarget Replica...
)

Serializes all saved cues.

Public function

void

 

NotifyRollback

(
    const FNetworkSimTime& InRollbackT...
)

Tell dispatcher that we've rolled back to a new simulation time (resimulate steps to follow, most likely)

Public function

void

 

PopContext()

Public function

void

 

PushContext

(
    const FContext& InContext
)

Push/pop simulation context.

Public function Const

void

 

SetConfirmedTime

(
    const FNetworkSimTime& NewConfirme...
)

Set Confirmed time. If this is never called, we assume we are always confirmed/authority.

Public function Const

void

 

SetMaxDispatchTime

(
    const FNetworkSimTime& NewMaxTime
)

Set max simulation time to invoke cues for. Clearing = always process latest. This is used for interpolation or client side buffering delaying cues until "its time".

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