Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UNetworkPredictionComponent
- UMockNetworkSimulationComponent
References
Module | NetworkPredictionExtras |
Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockNetworkSimulation.h |
Include | #include "MockNetworkSimulation.h" |
Syntax
UCLASS&40;BlueprintType, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UMockNetworkSimulationComponent : public UNetworkPredictionComponent
Remarks
ActorComponent for running a MockNetworkSimulation (implements Driver for the mock simulation)
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TUniquePtr< FMockNetworkSimulation > | MockNetworkSimulation | Our own simulation object. This could just as easily be shared among all UMockNetworkSimulationComponent. |
![]() |
float | MockValue | Mock representation of "syncing' to the sync state in the network sim. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | FinalizeFrame
(
const FMockSyncState* Sync, |
Take output of Sim and push to component. |
![]() |
void | HandleCue
(
const FMockCue& MockCue, |
|
![]() |
void | InitializeSimulationState
(
FMockSyncState* Sync, |
Seed initial values based on component's state. |
![]() |
void | ProduceInput
(
const int32 DeltaTimeMS, |
Set latest input. |
Overridden from UNetworkPredictionComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Classes must initialize the NetworkPredictionProxy (register with the NetworkPredictionSystem) here. EndPlay will unregister. |
Overridden from UActorComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |