Navigation
API > API/Runtime > API/Runtime/IrisCore
TFastArrayReplicationFragment - Binds a typed FastArray to a FReplicationfragment Used to support FFastArray-based serialization with no required code modifications Backed by a PropertyReplicationState which means that we will have to poll source data for dirtiness, in the case of FastArrays this involves comparing the replication key of the array and its items.
| Name | TFastArrayReplicationFragment |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/FastArrayReplicationFragment.h |
| Include Path | #include "Iris/ReplicationSystem/FastArrayReplicationFragment.h" |
Syntax
template<typename FastArrayItemType, typename FastArrayType>
class TFastArrayReplicationFragment : public UE::Net::Private::FFastArrayReplicationFragmentBase
Inheritance Hierarchy
- FReplicationFragment → FFastArrayReplicationFragmentBase → TFastArrayReplicationFragment
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TFastArrayReplicationFragment
(
EReplicationFragmentTraits InTraits, |
TFastArrayReplicationFragment implementation | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
TFastArrayReplicationFragment
(
EReplicationFragmentTraits InTraits, |
Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Enums
Protected
| Name | Remarks |
|---|---|
| EAllowAdditionalPropertiesType |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ItemArrayType | TArray< FastArrayItemType > | Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyReplicatedStateForExtraProperties
(
FReplicationStateApplyContext& Context |
For the select few cases where we allow additional properties, this is a helper to deal with applying them directly from quantized state. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
FastArrayType * GetFastArraySerializerFromApplyContext
(
FReplicationStateApplyContext& Context |
Get FastArraySerialzier from received state. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
FastArrayType * GetFastArraySerializerFromOwner() |
Get FastArraySerializer from owner. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
FastArrayType * GetFastArraySerializerFromReplicationState() |
Get FastArraySerializer from our cached ReplicationState. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
bool IsDirty() |
Returns true if the FastArray is dirty. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
bool IsDirtyForPolling() |
Returns true if the FastArray should be polled. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
void MarkDirty() |
Mark FastArray dirty. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
bool PollAllState
(
bool bForceFullCompare |
Poll entire FastFrray. | Iris/ReplicationSystem/FastArrayReplicationFragment.h |
Overridden from FReplicationFragment
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyReplicatedState
(
FReplicationStateApplyContext& Context |
FReplicationFragment. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
virtual void CallRepNotifies
(
FReplicationStateApplyContext& Context |
Optional method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::HasRepNotifies trait set. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
virtual bool PollReplicatedState
(
EReplicationFragmentPollFlags PollOption |
Optional Poll method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::NeedsPoll trait set. | Iris/ReplicationSystem/FastArrayReplicationFragment.h | |
virtual void ReplicatedStateToString
(
FStringBuilderBase& StringBuilder, |
Optional method to output state data to StringBuilder. | Iris/ReplicationSystem/FastArrayReplicationFragment.h |