Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
References
Module | NetworkPrediction |
Header | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionProxy.h |
Include | #include "NetworkPredictionProxy.h" |
Syntax
USTRUCT&40;&41;
struct FNetworkPredictionProxy
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Configure
(
const FNetworkPredictionInstanceConfig& Config |
Call to change local configuration of proxy. Not networked. |
![]() |
void | EndPlay () |
Unregisters from NetworkPrediction System. |
![]() ![]() |
bool | ||
![]() ![]() |
ENetRole | ||
![]() ![]() |
FNetSimCueDispatcher * | ||
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | ||
![]() ![]() |
bool | Identical
(
const FNetworkPredictionProxy* Other, |
|
![]() |
void | Init
(
const FInitParams< ModelDef >& Params |
The init function binds to the templated methods on UNetworkPredictionMAnager. |
![]() |
void | Init
(
UWorld* World, |
The init function that you need to call. This is defined in NetworkPredictionProxyInit.h (which should only be included by your .cpp file) |
![]() |
void | InitForNetworkRole
(
ENetRole Role, |
When network role changes, initializes role storage and logic controller. |
![]() |
bool | NetSerialize
(
FArchive& Ar, |
|
![]() ![]() |
const TAuxState * | ReadAuxState
(
ENetworkPredictionStateRead ReadType |
Returns Presentation AuxState by default, if it is set. Otherwise returns pending Simulation value. |
![]() ![]() |
const TInputCmd * | ReadInputCmd () |
Returns pending InputCmd. (Note there is no Presentation version of InputCmds) |
![]() ![]() |
const TSyncState * | ReadSyncState
(
ENetworkPredictionStateRead ReadType |
Returns Presentation SyncState by default, if it is set. Otherwise returns pending Simulation value. |
![]() |
void | SetArchetype
(
const FNetworkPredictionInstanceArchetype& Archetype, |
Should only be called on the authority. Changes what how this instance is allowed to be configured. |
![]() |
const TAuxState * | WriteAuxState
(
TFunctionRef< void(TAuxState&)> WriteFunc, |
|
![]() |
const TInputCmd * | WriteInputCmd
(
TFunctionRef< void(TInputCmd&)> WriteFunc, |
Writes - must include NetworkPredictionProxyWrite.h in places that call this Note that writes are implicitly done on the simulation state. |
![]() |
const TSyncState * | WriteSyncState
(
TFunctionRef< void(TSyncState&)> WriteFunc, |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FInitParams | Parameter struct to be used with the Init function overload below, when a UWorld isn't available, such as in unit tests. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EConfigAction | Allows ConfigFunc to be invoked to "do a thing" instead of set a new config/id. |