FNetworkPredictionDriverBase

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkPredictionDriver.h"

Syntax

template<typename ModelDef>
struct FNetworkPredictionDriverBase

Functions

Name Description

Public function Static

TEnableIf< b...

 

BeginInterpolatedPhysics

(
    DriverType* Driver
)

BeginInterpolatedPhysics - turn off physics simulation so that NP can interpolate the physics state

Public function Static

TEnableIf<&#...

 

BeginInterpolatedPhysics

(
    DriverType* Driver
)

Public function Static

TEnableIf< H...

 

CallFinalizeFrameMemberFunc

(
    DriverType* Driver,
    const SyncType* SyncState,
    const AuxType* AuxState
)

Public function Static

TEnableIf<&#...

 

CallFinalizeFrameMemberFunc

(
    DriverType* Driver,
    const SyncType* SyncState,
    const AuxType* AuxState
)

Public function Static

TEnableIf< H...

 

CallInitializeSimulationStateMemberFunc

(
    DriverType* Driver,
    SyncType* Sync,
    AuxType* Aux
)

Public function Static

TEnableIf<&#...

 

CallInitializeSimulationStateMemberFunc

(
    DriverType* Driver,
    SyncType* Sync,
    AuxType* Aux
)

Public function Static

TEnableIf<&#...

 

CallProduceInputMemberFunc

(
    DriverType* Driver,
    int32 DeltaTimeMS,
    InputType* InputCmd
)

Public function Static

TEnableIf< H...

 

CallProduceInputMemberFunc

(
    DriverType* Driver,
    int32 DeltaTimeMS,
    InputType* InputCmd
)

Public function Static

TEnableIf<&#...

 

CallRestoreFrameMemberFunc

(
    DriverType* Driver,
    const SyncType* SyncState,
    const AuxType* AuxState
)

Public function Static

TEnableIf< H...

 

CallRestoreFrameMemberFunc

(
    DriverType* Driver,
    const SyncType* SyncState,
    const AuxType* AuxState
)

Public function Static

void

 

CallServerRPC

(
    DriverType* Driver
)

CallServerRPC

Public function Static

TEnableIf< H...

 

CallServerRPCMemberFunc

(
    DriverType* Driver
)

Public function Static

TEnableIf<&#...

 

CallServerRPCMemberFunc

(
    DriverType* Driver
)

Public function Static

TEnableIf< H...

 

CallSetHiddenForInterpolation

(
    DriverType* Driver,
    bool bHide
)

Public function Static

TEnableIf<&#...

 

CallSetHiddenForInterpolation

(
    DriverType* Driver,
    bool bHide
)

Public function Static

void

 

CallSetHiddenForInterpolationFallback

(
    AActor* Driver,
    bool bHide
)

Public function Static

void

 

CallSetHiddenForInterpolationFallback

(
    UActorComponent* Driver,
    bool bHide
)

Public function Static

void

 

DispatchCues

(
    TNetSimCueDispatcher< ModelDef >&#...,
    void* Driver,
    int32 SimFrame,
    int32 SimTimeMS,
    const int32 FixedStepMS
)

Public function Static

void

 

DispatchCues

(
    TNetSimCueDispatcher< ModelDef >&#...,
    InDriverType* Driver,
    int32 SimFrame,
    int32 SimTimeMS,
    const int32 FixedStepMS
)

Dispatch Cues

Public function Static

void

 

DrawDebugOutline

(
    DriverType* Driver,
    FColor Color,
    float Lifetime
)

Public function Static

void

 

DrawDebugText3D

(
    DriverType* Driver,
    const TCHAR* Str,
    FColor Color,
    float Lifetime,
    float ZOffset
)

Public function Static

TEnableIf< b...

 

EndInterpolatedPhysics

(
    DriverType* Driver
)

EndInterpolatedPhysics - turn on physics simulation

Public function Static

TEnableIf<&#...

 

EndInterpolatedPhysics

(
    DriverType* Driver
)

Public function Static

void

 

FinalizeFrame

(
    DriverType* Driver,
    const SyncType* SyncState,
    const AuxType* AuxState
)

FinalizeFrame

Public function Static

TEnableIf< b...

 

FinalizeInterpolatedPhysics

(
    DriverType* Driver,
    TConditionalState< PhysicsState >&...
)

FinalizeInterpolatedPhysics Only called when needing to push NP interpolated physics state to the driver.

Public function Static

TEnableIf<&#...

 

FinalizeInterpolatedPhysics

(
    DriverType* Driver,
    TConditionalState< PhysicsState >&...
)

Public function Static

constexpr FN...

 

GetCapabilities()

Defines what the ModelDef can do. This is a compile time thing only.

Public function Static

FNetworkPred...

 

GetConfig

(
    const FNetworkPredictionInstanceArc...,
    const FNetworkPredictionSettings& ...,
    ENetRole Role,
    bool bHasNetConnection
)

Defines the default config for an instance, given their archetype and Role/NetConnection.

Public function Static

FBox

 

GetDebugBoundingBox

(
    void* NoDriver
)

Public function Static

FBox

 

GetDebugBoundingBox

(
    UActorComponent* DriverCompone...
)

Public function Static

FBox

 

GetDebugBoundingBox

(
    AActor* DriverActor
)

Public function Static

void

 

GetDebugString

(
    UActorComponent* ActorComp,
    FStringBuilderBase& Builder
)

Public function Static

void

 

GetDebugString

(
    void* NoDriver,
    FStringBuilderBase& Builder
)

Public function Static

void

 

GetDebugString

(
    AActor* Actor,
    FStringBuilderBase& Builder
)

Basic string/debug info

Public function Static

void

 

GetDebugStringFull

(
    UActorComponent* ActorComp,
    FStringBuilderBase& Builder
)

Public function Static

void

 

GetDebugStringFull

(
    AActor* Actor,
    FStringBuilderBase& Builder
)

Public function Static

void

 

GetDebugStringFull

(
    void* NoDriver,
    FStringBuilderBase& Builder
)

Public function Static

FTransform

 

GetDebugWorldTransform

(
    void* NoDriver
)

Public function Static

FTransform

 

GetDebugWorldTransform

(
    UActorComponent* DriverCompone...
)

Public function Static

FTransform

 

GetDebugWorldTransform

(
    AActor* DriverActor
)

Public function Static

bool

 

GetDefaultArchetype

(
    FNetworkPredictionInstanceArchetype...,
    ENetworkPredictionTickingPolicy Pre...,
    bool bCanPhysicsTickPhysics
)

Defines the default settings for a spawn instance.

Public function Static

TEnableIf<&#...

 

GetPhysicsBodyInstance

(
    DriverType* Driver
)

Public function Static

TEnableIf< H...

 

GetPhysicsBodyInstance

(
    DriverType* Driver
)

Public function Static

TEnableIf<&#...

 

GetPhysicsPrimitiveComponent

(
    DriverType* Driver
)

Public function Static

TEnableIf< H...

 

GetPhysicsPrimitiveComponent

(
    DriverType* Driver
)

Public function Static

void

 

GetTraceString

(
    void* NoDriver,
    FStringBuilderBase& Builder
)

Public function Static

void

 

GetTraceString

(
    AActor* Actor,
    FStringBuilderBase& Builder
)

Public function Static

void

 

GetTraceString

(
    UActorComponent* ActorComp,
    FStringBuilderBase& Builder
)

Public function Static

constexpr bo...

 

HasDriver()

Public function Static

constexpr bo...

 

HasInput()

Public function Static

constexpr bo...

 

HasNpState()

Public function Static

constexpr bo...

 

HasPhysics()

Public function Static

constexpr bo...

 

HasSimulation()

Public function Static

void

 

InitializeSimulationState

(
    DriverType* Driver,
    SyncType* Sync,
    AuxType* Aux
)

Public function Static

void

 

InitializeSimulationState

(
    DriverType* Driver,
    FNetworkPredictionStateView* V...
)

InitializeSimulationState

Public function Static

void

 

Interpolate

(
    const TSyncAuxPair< StateTypes >& ...,
    const TSyncAuxPair< StateTypes >& ...,
    const float PCT,
    SyncType* SyncOut,
    AuxType* AuxOut
)

Interpolate

Blend between From/To set of Sync/Aux states

Public function Static

TEnableIf<&#...

 

InterpolatePhysics

(
    TConditionalState< PhysicsState >&...,
    TConditionalState< PhysicsState >&...,
    float PCT,
    TConditionalState< PhysicsState >&...
)

Public function Static

TEnableIf< b...

 

InterpolatePhysics

(
    TConditionalState< PhysicsState >&...,
    TConditionalState< PhysicsState >&...,
    float PCT,
    TConditionalState< PhysicsState >&...
)

InterpolatePhysics

Public function Static

void

 

InterpolateState

(
    const void* From,
    const void* To,
    const float PCT,
    void* Out
)

Public function Static

void

 

InterpolateState

(
    const StateType* From,
    const StateType* To,
    const float PCT,
    StateType* Out
)

Public function Static

TEnableIf< b...

 

LogPhysicsState

(
    TConditionalState< PhysicsState >&...,
    FOutputDevice& Ar
)

LogPhysicsState

Public function Static

TEnableIf< b...

 

LogPhysicsState

(
    int32 PhysicsFrame,
    Chaos::FRewindData* RewindData,
    DriverType* Driver,
    FOutputDevice& Ar
)

Public function Static

TEnableIf<&#...

 

LogPhysicsState

(
    int32 PhysicsFrame,
    Chaos::FRewindData* RewindData,
    DriverType* Driver,
    FOutputDevice& Ar
)

Public function Static

TEnableIf<&#...

 

LogPhysicsState

(
    TConditionalState< PhysicsState >&...,
    FOutputDevice& Ar
)

Public function Static

void

 

LogUserState

(
    const StateType* State,
    FOutputDevice& Ar
)

Public function Static

void

 

LogUserStates

(
    const TNetworkPredictionState< Stat...,
    FOutputDevice& Ar
)

ToString

Public function Static

TEnableIf< b...

 

MarshalPhysicsToComponent

(
    DriverType* Driver
)

MarshalPhysicsToComponent

Public function Static

TEnableIf<&#...

 

MarshalPhysicsToComponent

(
    DriverType* Driver
)

Public function Static

void

 

NetSerialize

(
    TConditionalState< void >& State,
    const FNetSerializeParams& P
)

Public function Static

void

 

NetSerialize

(
    TConditionalState< StateType >& St...,
    const FNetSerializeParams& P
)

NetSerialize

Forwards NetSerialize call to the user type.

Public function Static

TEnableIf< b...

 

PerformPhysicsRollback

(
    DriverType* Driver,
    TConditionalState< PhysicsState >&...
)

PerformPhysicsRollback

Public function Static

TEnableIf<&#...

 

PerformPhysicsRollback

(
    DriverType* Driver,
    TConditionalState< PhysicsState >&...
)

Public function Static

TEnableIf< b...

 

PhysicsNetRecv

(
    const FNetSerializeParams& P,
    TConditionalState< PhysicsState >&...
)

PhysicsNetRecv

Public function Static

TEnableIf<&#...

 

PhysicsNetRecv

(
    const FNetSerializeParams& P,
    TConditionalState< PhysicsState >&...
)

Public function Static

TEnableIf<&#...

 

PhysicsNetSend

(
    const FNetSerializeParams& P,
    DriverType* Driver
)

Public function Static

TEnableIf< b...

 

PhysicsNetSend

(
    const FNetSerializeParams& P,
    DriverType* Driver
)

PhysicsNetSend

Public function Static

TEnableIf<&#...

 

PhysicsStateIsConsistent

(
    DriverType* Driver
)

Public function Static

TEnableIf< b...

 

PhysicsStateIsConsistent

(
    DriverType* Driver
)

PhysicsStateIsConsistent Only used in debugging - checks if UPrimitiveComponent and FPhysicsBody state are in sync with each other

Public function Static

TEnableIf<&#...

 

PostPhysicsResimulate

(
    DriverType* Driver
)

Public function Static

TEnableIf< b...

 

PostPhysicsResimulate

(
    DriverType* Driver
)

PostPhysicsResimulate

Public function Static

void

 

ProduceInput

(
    DriverType* Driver,
    int32 DeltaTimeMS,
    InputType* InputCmd
)

ProduceInput

Public function Static

void

 

RestoreFrame

(
    DriverType* Driver,
    const SyncType* SyncState,
    const AuxType* AuxState
)

RestoreFrame

Public function Static

UPrimitiveCo...

 

SafeCastDriverToPrimitiveComponent

(
    InDriverType* Driver
)

Public function Static

UPrimitiveCo...

 

SafeCastDriverToPrimitiveComponent

(
    UPrimitiveComponent* Driver
)

Public function Static

void

 

SetHiddenForInterpolation

(
    DriverType* Driver,
    bool bHide
)

Show/Hide ForInterpolation

Public function Static

bool

 

ShouldReconcile

(
    const TSyncAuxPair< StateTypes >& ...,
    const TSyncAuxPair< StateTypes >& ...
)

ShouldReconcile

Public function Static

bool

 

ShouldReconcile

(
    const StateType* Predicted,
    const StateType* Authority
)

Public function Static

bool

 

ShouldReconcile

(
    const void* Predicted,
    const void* Authority
)

Public function Static

TEnableIf< b...

 

ShouldReconcilePhysics

(
    int32 PhysicsFrame,
    Chaos::FRewindData* RewindData,
    DriverType* Driver,
    TConditionalState< PhysicsState >&...
)

ShouldReconcilePhysics

Public function Static

TEnableIf<&#...

 

ShouldReconcilePhysics

(
    int32 PhysicsFrame,
    Chaos::FRewindData* RewindData,
    DriverType* Driver,
    TConditionalState< PhysicsState >&...
)

Public function Static

void

 

ToString

(
    const StateType* State,
    FAnsiStringBuilderBase& Builder
)

Public function Static

void

 

ToString

(
    const void* State,
    FAnsiStringBuilderBase& Builder
)

Public function Static

TEnableIf< b...

 

TracePhysicsState

(
    DriverType* Driver,
    FAnsiStringBuilderBase& Builder
)

Current latest physics state.

Public function Static

TEnableIf<&#...

 

TracePhysicsState

(
    DriverType* Driver,
    FAnsiStringBuilderBase& Builder
)

Public function Static

TEnableIf< b...

 

TracePhysicsState

(
    int32 PhysicsFrame,
    Chaos::FRewindData* RewindData,
    DriverType* Driver,
    FAnsiStringBuilderBase& Builder
)

Local historic physics state.

Public function Static

TEnableIf<&#...

 

TracePhysicsState

(
    int32 PhysicsFrame,
    Chaos::FRewindData* RewindData,
    DriverType* Driver,
    FAnsiStringBuilderBase& Builder
)

Public function Static

TEnableIf< b...

 

TracePhysicsStateRecv

(
    const TConditionalState< PhysicsSta...,
    FAnsiStringBuilderBase& Builder
)

Received physics state.

Public function Static

TEnableIf<&#...

 

TracePhysicsStateRecv

(
    const TConditionalState< PhysicsSta...,
    FAnsiStringBuilderBase& Builder
)

Public function Static

void

 

TraceUserStateString

(
    const StateType* State,
    FAnsiStringBuilderBase& Builder
)

Classes

Typedefs

Constants

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