Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
Inheritance Hierarchy
- FNetworkPredictionDriverBase
- FNetworkPredictionDriver
- FNetworkPredictionDriver< FGenericKinematicActorDef >
References
| Module | NetworkPrediction |
| Header | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionDriver.h |
| Include | #include "NetworkPredictionDriver.h" |
Syntax
template<typename ModelDef>
struct FNetworkPredictionDriverBase
Functions
| Type | Name | Description | |
|---|---|---|---|
| TEnableIf::Type | BeginInterpolatedPhysics
(
DriverType* Driver |
||
| TEnableIf< bEnable >::Type | BeginInterpolatedPhysics
(
DriverType* Driver |
BeginInterpolatedPhysics - turn off physics simulation so that NP can interpolate the physics state | |
| TEnableIf< HasFunc >::Type | CallFinalizeFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallFinalizeFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallFinalizeSmoothingFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallFinalizeSmoothingFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallInitializeSimulationStateMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallInitializeSimulationStateMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallProduceInputMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallProduceInputMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallRestoreFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallRestoreFrameMemberFunc
(
DriverType* Driver, |
||
| void | CallServerRPC
(
DriverType* Driver |
CallServerRPC | |
| TEnableIf::Type | CallServerRPCMemberFunc
(
DriverType* Driver |
||
| TEnableIf< HasFunc >::Type | CallServerRPCMemberFunc
(
DriverType* Driver |
||
| TEnableIf< HasFunc >::Type | CallSetHiddenForInterpolation
(
DriverType* Driver, |
||
| TEnableIf::Type | CallSetHiddenForInterpolation
(
DriverType* Driver, |
||
| void | CallSetHiddenForInterpolationFallback
(
AActor* Driver, |
||
| void | CallSetHiddenForInterpolationFallback
(
UActorComponent* Driver, |
||
| void | DispatchCues
(
TNetSimCueDispatcher< ModelDef >* CueDispatcher, |
||
| void | DispatchCues
(
TNetSimCueDispatcher< ModelDef >* CueDispatcher, |
Dispatch CuesForwards call to CueDispatche's DispatchCueRecord which will invoke the queued HandleCue events to the driver. | |
| void | DrawDebugOutline
(
DriverType* Driver, |
||
| void | DrawDebugText3D
(
DriverType* Driver, |
||
| TEnableIf< bEnable >::Type | EndInterpolatedPhysics
(
DriverType* Driver |
EndInterpolatedPhysics - turn on physics simulation | |
| TEnableIf::Type | EndInterpolatedPhysics
(
DriverType* Driver |
||
| void | FinalizeFrame
(
DriverType* Driver, |
FinalizeFrameCalled every engine frame to push the final result of the NetworkPrediction system to the driver | |
| TEnableIf::Type | FinalizeInterpolatedPhysics
(
DriverType* Driver, |
||
| TEnableIf< bEnable >::Type | FinalizeInterpolatedPhysics
(
DriverType* Driver, |
FinalizeInterpolatedPhysics Only called when needing to push NP interpolated physics state to the driver. | |
| void | FinalizeSmoothingFrame
(
DriverType* Driver, |
FinalizeSmoothingFrameWhen a smoothing service is active, this is called every engine frame to push the final smoothed state to the driver. | |
| FNetworkPredictionModelDefCapabilities | Defines what the ModelDef can do. This is a compile time thing only. | ||
| FNetworkPredictionInstanceConfig | GetConfig
(
const FNetworkPredictionInstanceArchetype& Archetype, |
Defines the default config for an instance, given their archetype and Role/NetConnection. | |
| FBox | GetDebugBoundingBox
(
void* NoDriver |
||
| FBox | GetDebugBoundingBox
(
AActor* DriverActor |
||
| FBox | GetDebugBoundingBox
(
UActorComponent* DriverComponent |
||
| void | GetDebugString
(
AActor* Actor, |
Basic string/debug info | |
| void | GetDebugString
(
UActorComponent* ActorComp, |
||
| void | GetDebugString
(
void* NoDriver, |
||
| void | GetDebugStringFull
(
void* NoDriver, |
||
| void | GetDebugStringFull
(
UActorComponent* ActorComp, |
||
| void | GetDebugStringFull
(
AActor* Actor, |
||
| FTransform | GetDebugWorldTransform
(
AActor* DriverActor |
||
| FTransform | GetDebugWorldTransform
(
UActorComponent* DriverComponent |
||
| FTransform | GetDebugWorldTransform
(
void* NoDriver |
||
| bool | GetDefaultArchetype
(
FNetworkPredictionInstanceArchetype& Archetype, |
Defines the default settings for a spawn instance. | |
| TEnableIf::Type | GetPhysicsBodyInstance
(
DriverType* Driver |
||
| TEnableIf< HasFunc, FBodyInstance * >::Type | GetPhysicsBodyInstance
(
DriverType* Driver |
||
| TEnableIf::Type | GetPhysicsPrimitiveComponent
(
DriverType* Driver |
||
| TEnableIf< HasFunc, UPrimitiveComponent * >::Type | GetPhysicsPrimitiveComponent
(
DriverType* Driver |
||
| void | GetTraceString
(
void* NoDriver, |
||
| void | GetTraceString
(
AActor* Actor, |
||
| void | GetTraceString
(
UActorComponent* ActorComp, |
||
| bool | HasDriver () |
||
| bool | HasInput () |
||
| bool | HasNpState () |
||
| bool | HasPhysics () |
||
| bool | |||
| void | InitializeSimulationState
(
DriverType* Driver, |
InitializeSimulationState | |
| void | InitializeSimulationState
(
DriverType* Driver, |
||
| void | Interpolate
(
const TSyncAuxPair< StateTypes >& From, |
InterpolateBlend between From/To set of Sync/Aux states | |
| TEnableIf::Type | InterpolatePhysics
(
TConditionalState< PhysicsState >& FromState, |
||
| TEnableIf< bEnable >::Type | InterpolatePhysics
(
TConditionalState< PhysicsState >& FromState, |
InterpolatePhysics | |
| void | InterpolateState
(
const StateType* From, |
||
| void | InterpolateState
(
const void* From, |
||
| TEnableIf< bEnable >::Type | LogPhysicsState
(
TConditionalState< PhysicsState >& RecvState, |
LogPhysicsState | |
| TEnableIf< bEnable >::Type | LogPhysicsState
(
int32 PhysicsFrame, |
||
| TEnableIf::Type | LogPhysicsState
(
int32 PhysicsFrame, |
||
| TEnableIf::Type | LogPhysicsState
(
TConditionalState< PhysicsState >& RecvState, |
||
| void | LogUserState
(
const StateType* State, |
||
| void | LogUserStates
(
const TNetworkPredictionState< StateTypes >& UserStates, |
ToString | |
| TEnableIf< bEnable >::Type | MarshalPhysicsToComponent
(
DriverType* Driver |
MarshalPhysicsToComponent | |
| TEnableIf::Type | MarshalPhysicsToComponent
(
DriverType* Driver |
||
| void | NetSerialize
(
TConditionalState< void >& State, |
||
| void | NetSerialize
(
TConditionalState< StateType >& State, |
NetSerializeForwards NetSerialize call to the user type. | |
| TEnableIf< bEnable >::Type | PerformPhysicsRollback
(
DriverType* Driver, |
PerformPhysicsRollback | |
| TEnableIf::Type | PerformPhysicsRollback
(
DriverType* Driver, |
||
| TEnableIf< bEnable >::Type | PhysicsNetRecv
(
const FNetSerializeParams& P, |
PhysicsNetRecv | |
| TEnableIf::Type | PhysicsNetRecv
(
const FNetSerializeParams& P, |
||
| TEnableIf::Type | PhysicsNetSend
(
const FNetSerializeParams& P, |
||
| TEnableIf< bEnable >::Type | PhysicsNetSend
(
const FNetSerializeParams& P, |
PhysicsNetSend | |
| TEnableIf::Type | PhysicsStateIsConsistent
(
DriverType* Driver |
||
| TEnableIf< bEnable, bool >::Type | PhysicsStateIsConsistent
(
DriverType* Driver |
PhysicsStateIsConsistent Only used in debugging - checks if UPrimitiveComponent and FPhysicsBody state are in sync with each other | |
| TEnableIf::Type | PostPhysicsResimulate
(
DriverType* Driver |
||
| TEnableIf< bEnable >::Type | PostPhysicsResimulate
(
DriverType* Driver |
PostPhysicsResimulate | |
| void | ProduceInput
(
DriverType* Driver, |
ProduceInput | |
| void | RestoreFrame
(
DriverType* Driver, |
RestoreFrame | |
| UPrimitiveComponent * | SafeCastDriverToPrimitiveComponent
(
InDriverType* Driver |
||
| UPrimitiveComponent * | SafeCastDriverToPrimitiveComponent
(
UPrimitiveComponent* Driver |
||
| void | SetHiddenForInterpolation
(
DriverType* Driver, |
Show/Hide ForInterpolationInterpolated sims are initially hidden until there are two valid states to interpolate between | |
| bool | ShouldReconcile
(
const TSyncAuxPair< StateTypes >& Predicted, |
ShouldReconcile | |
| bool | ShouldReconcile
(
const StateType* Predicted, |
||
| bool | ShouldReconcile
(
const void* Predicted, |
||
| TEnableIf< bEnable, bool >::Type | ShouldReconcilePhysics
(
int32 PhysicsFrame, |
ShouldReconcilePhysics | |
| TEnableIf::Type | ShouldReconcilePhysics
(
int32 PhysicsFrame, |
||
| void | ToString
(
const StateType* State, |
||
| void | ToString
(
const void* State, |
||
| TEnableIf< bEnable >::Type | TracePhysicsState
(
DriverType* Driver, |
Current latest physics state. | |
| TEnableIf::Type | TracePhysicsState
(
DriverType* Driver, |
||
| TEnableIf< bEnable >::Type | TracePhysicsState
(
int32 PhysicsFrame, |
Local historic physics state. | |
| TEnableIf::Type | TracePhysicsState
(
int32 PhysicsFrame, |
||
| TEnableIf< bEnable >::Type | TracePhysicsStateRecv
(
const TConditionalState< PhysicsState >& RecvState, |
Received physics state. | |
| TEnableIf::Type | TracePhysicsStateRecv
(
const TConditionalState< PhysicsState >& RecvState, |
||
| void | TraceUserStateString
(
const StateType* State, |
Classes
Typedefs
| Name | Description |
|---|---|
| AuxType | |
| DriverType | |
| InputType | |
| PhysicsState | |
| Simulation | |
| StateTypes | |
| SyncType |