Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/ReplicationSystem
Inheritance Hierarchy
- FReplicationFragment
- FNativeFastArrayReplicationFragmentBase
- TNativeFastArrayReplicationFragment
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/FastArrayReplicationFragment.h |
| Include | #include "Iris/ReplicationSystem/FastArrayReplicationFragment.h" |
Syntax
template<typename FastArrayItemType, typename FastArrayType, typename PollingPolicyType>
class TNativeFastArrayReplicationFragment : public UE::Net::Private::FNativeFastArrayReplicationFragmentBase
Remarks
TNativeFastArrayReplicationFragment - Binds a typed FastArray to a FReplicationfragments Used to support FFastArray-based serialization with some minor code modifications The FastArray must be changed to inherit from IrisFastArraySerializer instead of FFastArraySerializer which will inject a ReplicationStateHeader and a fixed size changemask, in it most basic form this allows us to not keep a full copy the fast array to detect dirtiness but instead only store the ReplicationID and ReplicationKeys. We can also provide an alternative interface for editing the FastArrays which allows us update dirtiness directly and skip the poll step completely.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TNativeFastArrayReplicationFragment
(
EReplicationFragmentTraits InTraits, |
TNativeFastArrayReplicationFragment implementation |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FastArrayType * | Get FastArraySerializer from owner. | ||
| bool | IsDirty () |
||
| bool | PollAllState () |
||
| void | Register
(
FFragmentRegistrationContext& Fragments, |
Overridden from FReplicationFragment
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyReplicatedState
(
FReplicationStateApplyContext& Context |
FReplicationFragment implementation. | |
| void | CallRepNotifies
(
FReplicationStateApplyContext& Context |
Optional method required for backwards compatibility mode which will be invoked for all Fragment with the EReplicationFragmentTraits::HasRepNotifies trait set. | |
| 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. | |
| void | ReplicatedStateToString
(
FStringBuilderBase& StringBuilder, |
Optional method to output state data to StringBuilder. |
Typedefs
| Name | Description |
|---|---|
| ItemArrayType |