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

Remarks

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

Variables

Name Description

Public variable

TUniquePtr< FMo...

 

MockNetworkSimulation

Our own simulation object. This could just as easily be shared among all UMockNetworkSimulationComponent.

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* Sync,
    const FMockAuxState* Aux
)

Take output of Sim and push to component.

Public function

void

 

HandleCue

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

Public function

void

 

InitializeSimulationState

(
    FMockSyncState* Sync,
    FMockAuxState* Aux
)

Seed initial values based on component's state.

Public function

void

 

ProduceInput

(
    const int32 DeltaTimeMS,
    FMockInputCmd* Cmd
)

Set latest input.

Overridden from UNetworkPredictionComponent

Name Description

Public function Virtual

void

 

InitializeNetworkPredictionProxy()

Classes must initialize the NetworkPredictionProxy (register with the NetworkPredictionSystem) here. EndPlay will unregister.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

TickComponent

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

Function called every frame on this ActorComponent.

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