Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/FReplicationStateDescriptorBuild-
Description
Create the descriptors from an optional template or the class CDO.
Done by processing reflection information at runtime for existing replicated properties.
Since we want to allow ReplicationStates to be shared as much as possible between different connection we do split them up based on feature requirements, filtering, conditionals etc. We also keep Init states separate.
If a descriptor registry is provided, the functions below will search the registry before creating a new ReplicationStateDescriptor. Any created ReplicationStateDescriptor will be registered in the provided registry.
Returns number of states created for the provided class.
| Name | CreateDescriptorsForClass |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationState/ReplicationStateDescriptorBuilder.h |
| Include Path | #include "Iris/ReplicationState/ReplicationStateDescriptorBuilder.h" |
| Source | /Engine/Source/Runtime/Net/Iris/Private/Iris/ReplicationState/ReplicationStateDescriptorBuilder.cpp |
static SIZE_T CreateDescriptorsForClass
(
FResult & OutCreatedDescriptors,
UClass * InClass,
const FParameters & Parameters
)