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< bEnable >::Type | BeginInterpolatedPhysics
(
DriverType* Driver |
BeginInterpolatedPhysics - turn off physics simulation so that NP can interpolate the physics state | |
| TEnableIf::Type | BeginInterpolatedPhysics
(
DriverType* Driver |
||
| TEnableIf< HasFunc >::Type | CallFinalizeFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallFinalizeFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallInitializeSimulationStateMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallInitializeSimulationStateMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallProduceInputMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallProduceInputMemberFunc
(
DriverType* Driver, |
||
| TEnableIf::Type | CallRestoreFrameMemberFunc
(
DriverType* Driver, |
||
| TEnableIf< HasFunc >::Type | CallRestoreFrameMemberFunc
(
DriverType* Driver, |
||
| void | CallServerRPC
(
DriverType* Driver |
CallServerRPC | |
| TEnableIf< HasFunc >::Type | CallServerRPCMemberFunc
(
DriverType* Driver |
||
| TEnableIf::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 Cues | |
| 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, |
FinalizeFrame | |
| TEnableIf< bEnable >::Type | FinalizeInterpolatedPhysics
(
DriverType* Driver, |
FinalizeInterpolatedPhysics Only called when needing to push NP interpolated physics state to the driver. | |
| TEnableIf::Type | FinalizeInterpolatedPhysics
(
DriverType* Driver, |
||
| constexpr 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
(
UActorComponent* DriverComponent |
||
| FBox | GetDebugBoundingBox
(
AActor* DriverActor |
||
| void | GetDebugString
(
UActorComponent* ActorComp, |
||
| void | GetDebugString
(
void* NoDriver, |
||
| void | GetDebugString
(
AActor* Actor, |
Basic string/debug info | |
| void | GetDebugStringFull
(
UActorComponent* ActorComp, |
||
| void | GetDebugStringFull
(
AActor* Actor, |
||
| void | GetDebugStringFull
(
void* NoDriver, |
||
| FTransform | GetDebugWorldTransform
(
void* NoDriver |
||
| FTransform | GetDebugWorldTransform
(
UActorComponent* DriverComponent |
||
| FTransform | GetDebugWorldTransform
(
AActor* DriverActor |
||
| bool | GetDefaultArchetype
(
FNetworkPredictionInstanceArchetype& Archetype, |
Defines the default settings for a spawn instance. | |
| TEnableIfFBodyInstance * >::Type | GetPhysicsBodyInstance
(
DriverType* Driver |
||
| TEnableIf< HasFunc, FBodyInstance * >::Type | GetPhysicsBodyInstance
(
DriverType* Driver |
||
| TEnableIfUPrimitiveComponent * >::Type | GetPhysicsPrimitiveComponent
(
DriverType* Driver |
||
| TEnableIf< HasFunc, UPrimitiveComponent * >::Type | GetPhysicsPrimitiveComponent
(
DriverType* Driver |
||
| void | GetTraceString
(
void* NoDriver, |
||
| void | GetTraceString
(
AActor* Actor, |
||
| void | GetTraceString
(
UActorComponent* ActorComp, |
||
| constexpr bool | HasDriver () |
||
| constexpr bool | HasInput () |
||
| constexpr bool | HasNpState () |
||
| constexpr bool | HasPhysics () |
||
| constexpr bool | |||
| void | InitializeSimulationState
(
DriverType* Driver, |
||
| void | InitializeSimulationState
(
DriverType* Driver, |
InitializeSimulationState | |
| 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 void* From, |
||
| void | InterpolateState
(
const StateType* 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 * | |||
| void | SetHiddenForInterpolation
(
DriverType* Driver, |
Show/Hide ForInterpolation | |
| 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 |