Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/Backends
Inheritance Hierarchy
- UActorComponent
- UNetworkPredictionComponent
- UMoverNetworkPredictionLiaisonComponent
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/Backends/MoverNetworkPredictionLiaison.h |
| Include | #include "Backends/MoverNetworkPredictionLiaison.h" |
Syntax
UCLASS ()
class UMoverNetworkPredictionLiaisonComponent :
public UNetworkPredictionComponent ,
public IMoverBackendLiaisonInterface
Remarks
MoverNetworkPredictionLiaisonComponent: this component acts as a middleman between an actor's Mover component and the Network Prediction plugin. This class is set on a Mover component as the "back end".
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UMoverComponent > | MoverComp | ||
| FMoverAuxStateContext * | StartingOutAux | ||
| FMoverSyncState * | StartingOutSync |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
||
| void | FinalizeFrame
(
const FMoverSyncState* SyncState, |
Take output for simulation. Called by Network Prediction system. | |
| void | InitializeSimulationState
(
FMoverSyncState* OutSync, |
Seed initial values based on component's state. Called by Network Prediction system. | |
| void | OnRegister () |
||
| void | ProduceInput
(
const int32 DeltaTimeMS, |
Get latest local input prior to simulation step. Called by Network Prediction system on owner's instance (autonomous or authority). | |
| void | RegisterComponentTickFunctions
(
bool bRegister |
||
| void | RestoreFrame
(
const FMoverSyncState* SyncState, |
Restore a previous frame prior to resimulating. Called by Network Prediction system. | |
| void | SimulationTick
(
const FNetSimTimeStep& TimeStep, |
Primary movement simulation update. Given an starting state and timestep, produce a new state. Called by Network Prediction system. |
Overridden from UNetworkPredictionComponent
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | Classes must initialize the NetworkPredictionProxy (register with the NetworkPredictionSystem) here. EndPlay will unregister. |
Overridden from IMoverBackendLiaisonInterface
| Type | Name | Description | |
|---|---|---|---|
| int32 | |||
| float | |||
| bool | ReadPendingSyncState
(
OUTFMoverSyncState& OutSyncState |
||
| bool | WritePendingSyncState
(
const FMoverSyncState& SyncStateToWrite |