TScopedSimulationTick

Scoped helper to be used right before entering a call to the sim's ::SimulationTick function.

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkedSimulationModelTypes.h"

Syntax

template<typename Model>
struct TScopedSimulationTick

Remarks

Scoped helper to be used right before entering a call to the sim's ::SimulationTick function. Important to note that this advances the PendingFrame to the output Frame. So that any writes that occur to the buffers during this scope will go to the output frame.

Variables

Name Description

Public variable

const FNetworkS...

 

DeltaSimTime

Public variable

TNetSimCueDispa...

 

Dispatcher

Public variable

const int32 &

 

OutputFrame

Public variable

FSimulationTick...

 

Ticker

Constructors

Name Description

Public function

TScopedSimulationTick

(
    FSimulationTickState& InTicker,
    TNetSimCueDispatcher< Model >& InD...,
    ESimulationTickContext TickContext,
    const int32& InOutputFrame,
    const FNetworkSimTime& InDeltaSimT...
)

Destructors

Name Description

Public function

~TScopedSimulationTick()

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