Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
Redirects NetSerialize to a dynamically set NetSerializeFunc. This is how we hook into the replication systems role-based serialization
| Name | FReplicationProxy |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionReplicationProxy.h |
| Include Path | #include "NetworkPredictionReplicationProxy.h" |
Syntax
USTRUCT ()
struct FReplicationProxy
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaxNumBits | uint32 | NetworkPredictionReplicationProxy.h | |
| NumReservedBits | uint32 | Number of bits to reserve in serialization container. Make this large enough to try to avoid re-allocation during the worst case calls. | NetworkPredictionReplicationProxy.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DataBits | TBitArray< TInlineAllocator< NumReservedBits/NumBitsPerDWORD > > | Iris support: TInlineAllocator used with TBitArray takes the number of 32-bit dwords, but the define is in number of bits, so convert here by dividing by 32. | NetworkPredictionReplicationProxy.h | |
| NetSerializeFunc | TFunction< void(const FNetSerializeParams &P)> | NetworkPredictionReplicationProxy.h | ||
| NetSimProxy | FNetworkPredictionProxy * | NetworkPredictionReplicationProxy.h | ||
| NetTokensPendingExport | UE::Net::FNetTokenExportContext::FNetTokenExports | Iris support: Since we capturing data outside of the normal serialization path we also need to store exports to inject when actually sending the data. | NetworkPredictionReplicationProxy.h | |
| OwnerActor | TWeakObjectPtr< AActor > | Iris support: holding ptr to associated actor for replication bridge / package map retrieval. | NetworkPredictionReplicationProxy.h | |
| PackageMapExports | UE::Net::FIrisPackageMapExports | Iris support: Since this struct uses custom serialization path we need to explicitly capture exports in order to forward them to iris This is managed by the use of a custom packagemap. | NetworkPredictionReplicationProxy.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedPendingFrame | int32 | NetworkPredictionReplicationProxy.h | ||
| ReplicationTarget | EReplicationProxyTarget | NetworkPredictionReplicationProxy.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetCachedPendingFrame() |
NetworkPredictionReplicationProxy.h | ||
bool Identical
(
const FReplicationProxy* Other, |
NetworkPredictionReplicationProxy.h | ||
void Init
(
FNetworkPredictionProxy* InNetSimProxy, |
NetworkPredictionReplicationProxy.h | ||
bool NetSerialize
(
FArchive& Ar, |
NetworkPredictionReplicationProxy.h | ||
void OnPreReplication() |
NetworkPredictionReplicationProxy.h |