Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
FServerRPCProxyParameter Used for the client->Server RPC. Since this is instantiated on the stack by the replication system prior to net serializing, we have no opportunity to point the RPC parameter to the member variables we want. So we serialize into a generic temp byte buffer and move them into the real buffers on the component in the RPC body (via ::SerializeToProxy).
| Name | FServerReplicationRPCParameter |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionReplicationProxy.h |
| Include Path | #include "NetworkPredictionReplicationProxy.h" |
Syntax
USTRUCT ()
struct FServerReplicationRPCParameter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Receive flow: ctor() -> NetSerialize. | NetworkPredictionReplicationProxy.h | ||
FServerReplicationRPCParameter
(
FReplicationProxy& InProxy |
Send flow: ctor(Proxy) -> SerializeToProxy. | NetworkPredictionReplicationProxy.h |
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 worst-case RPC 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 | |
| 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 | |
| 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 |
|---|---|---|---|---|
| CachedPackageMap | UPackageMap * | NetworkPredictionReplicationProxy.h | ||
| Proxy | FReplicationProxy * | NetworkPredictionReplicationProxy.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPackageMap * GetPackageMap() |
NetworkPredictionReplicationProxy.h | ||
bool NetSerialize
(
FArchive& Ar, |
NetworkPredictionReplicationProxy.h | ||
bool SerializeToProxy
(
FArchive& Ar, |
NetworkPredictionReplicationProxy.h | ||
void SetReplicationProxy
(
FReplicationProxy& InProxy |
NetworkPredictionReplicationProxy.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UIrisObjectReferencePackageMap * GetIrisPackageMapToCaptureReferences
(
UNetConnection* NetConnection, |
Iris support. | NetworkPredictionReplicationProxy.h | |
static UIrisObjectReferencePackageMap * GetIrisPackageMapToReadReferences
(
const UNetConnection* NetConnection, |
NetworkPredictionReplicationProxy.h |