TNetworkedSimulationModelDriver

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkedSimulationModelTraits.h"

Syntax

template<typename TBufferTypes>
class TNetworkedSimulationModelDriver

Remarks

This is the "system driver", it has functions that the TNetworkedSimulationModel needs to call internally, that are specific to the types but not specific to the simulation itself.

Functions

Name Description

Public function

void

 

FinalizeFrame

(
    const typename TBufferTypes::TSyncS...,
    const typename TBufferTypes::TAuxSt...
)

Called from the Network Sim at the end of the sim frame when there is new sync data.

Public function Const

FString

 

GetDebugName()

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

Public function Const

const AActor...

 

GetVLogOwner()

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

Public function Virtual Const

void

 

InvokeVisualLog

(
    const TInputCmd* Input,
    const TSyncState* Sync,
    const TAuxState* Aux,
    const FVisualLoggingParameters& Sy...
)

Call to visual log the given states. Note that not all 3 will always be present and you should check for nullptrs. Child classes most likely want to override ::VisualLog, not this.

Public function

void

 

ProduceInput

(
    const FNetworkSimTime SimTime,
    TInputCmd&
)

Called whenever the sim is ready to process new local input.

Protected function Const

void

 

VisualLog

(
    const TInputCmd* Input,
    const TSyncState* Sync,
    const TAuxState* Aux,
    const FVisualLoggingParameters& Sy...
)

Called to visual log the given states. Note that not all 3 will always be present and you should check for nullptrs.

Typedefs

Name

Description

TAuxState

TInputCmd

TSyncState

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