TRepController_Simulated

Simulated: "non locally controlled" simulations.

Windows
MacOS
Linux

Inheritance Hierarchy

TBase

TRepController_Simulated

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkedSimulationModelRepControllers.h"

Syntax

template<typename Model, typename TBase>
struct TRepController_Simulated : public TBase

Remarks

Simulated: "non locally controlled" simulations. We support "Simulation Extrapolation" here (using the sim to fake inputs to advance the sim) -TODO: this is replicating Input/Sync/Aux which is required to do accurate Simulation Extrapolation. For interpolated simulated proxies, we can skip the input and possibly the aux. More settings/config options would be nice here

Variables

Name Description

Public variable

bool

 

bAllowSimulatedExtrapolation

Instance flag for enabling simulated extrapolation.

Public variable

TNetSimInterpol...

 

Interpolator

Interpolated that will be used if bAllowSimulatedExtrapolation == false && ParentSimulation == nullptr.

Public variable

INetworkedSimul...

 

ParentSimulation

Parent Simulation. If this is set, this simulation will forward predict in sync with this parent sim. The parent sim should be an autonomous proxy driven simulation.

Functions

Name Description

Public function

void

 

DependentRollbackBegin

(
    TSimulation* Simulation,
    TDriver* Driver,
    TNetworkSimBufferContainer< Model >...,
    TSimulationTicker< TTickSettings > ...,
    const FNetworkSimTime& RollbackDel...,
    const int32 ParentFrame
)

Public function

void

 

DependentRollbackStep

(
    TSimulation* Simulation,
    TDriver* Driver,
    TNetworkSimBufferContainer< Model >...,
    TSimulationTicker< TTickSettings > ...,
    const FNetworkSimTime& StepTime,
    const int32 ParentFrame,
    const bool bFinalStep
)

Public function Const

const TAuxSt...

 

GetLastSerializedAuxState()

Public function Const

const TInput...

 

GetLastSerializedInputCmd()

Public function Const

FNetworkSimT...

 

GetLastSerializedSimulationTime()

Last Serialized time and state.

Public function Const

const TSyncS...

 

GetLastSerializedSyncState()

Public function Const

int32

 

GetProxyDirtyCount

Public function Const

ESimulatedUp...

 

GetSimulatedUpdateMode()

Public function

void

 

NetSerialize

(
    const FNetSerializeParams& P,
    TNetworkSimBufferContainer< Model >...,
    TSimulationTicker< TTickSettings > ...
)

Public function

void

 

PostSimTick

(
    TDriver* Driver,
    const TNetworkSimBufferContainer< M...,
    const TSimulationTicker< TTickSetti...,
    const FNetSimTickParameters& TickP...
)

Public function

void

 

PreSimTick

(
    TDriver* Driver,
    TNetworkSimBufferContainer< Model >...,
    TSimulationTicker< TTickSettings > ...,
    const FNetSimTickParameters& TickP...
)

Public function

void

 

Reconcile

(
    TSimulation* Simulation,
    TDriver* Driver,
    TNetworkSimBufferContainer< Model >...,
    TSimulationTicker< TTickSettings > ...
)

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