UMockNetworkSimulationComponent

ActorComponent for running a MockNetworkSimulation (implements Driver for the mock simulation)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetworkPredictionExtras

Header

/Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockNetworkSimulation.h

Include

#include "MockNetworkSimulation.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(BlueprintType, Meta=(BlueprintSpawnableComponent))
class UMockNetworkSimulationComponent :
    public UNetworkPredictionComponent,
    public TNetworkedSimulationModelDriver< TMockNetworkSimulationBufferTypes >

Remarks

ActorComponent for running a MockNetworkSimulation (implements Driver for the mock simulation)

Variables

Name Description

Public variable

FMockNetworkSim...

 

MockNetworkSimulation

Public variable

float

 

MockValue

Mock representation of "syncing' to the sync state in the network sim.

Constructors

Functions

Name Description

Public function

void

 

FinalizeFrame

(
    const FMockSyncState& SyncState,
    const FMockAuxState& AuxState
)

Public function

void

 

HandleCue

(
    const FMockCue& MockCue,
    const FNetSimCueSystemParamemters&...
)

Public function

void

 

ProduceInput

(
    const FNetworkSimTime SimTime,
    FMockInputCmd& Cmd
)

Public function Const

void

 

VisualLog

(
    const FMockInputCmd* Input,
    const FMockSyncState* Sync,
    const FMockAuxState* Aux,
    const FVisualLoggingParameters& Sy...
)

Overridden from UNetworkPredictionComponent

Name Description

Public function Virtual

INetworkedSi...

 

InstantiateNetworkedSimulation()

Classes must instantiate their own NetworkSim here. The UNetworkPredictionComponent will manage its lifetime.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction* T...
)

Function called every frame on this ActorComponent.

Overridden from TNetworkedSimulationModelDriver

Name Description

Public function Virtual Const

FString

 

GetDebugName()

Debug string that can be used in internal warning/error logs.

Public function Virtual Const

AActor *

 

GetVLogOwner()

Owning object for Visual Logs so that the system can emit them internally.

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