Navigation
API > API/Runtime > API/Runtime/IrisCore
ReplicationFragment Binds one or more ReplicationState(s) to the owner and is the key piece to defining the state that makes up a NetObject Used to extract and set state data on the game side.
| Name | FReplicationFragment |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/ReplicationFragment.h |
| Include Path | #include "Iris/ReplicationSystem/ReplicationFragment.h" |
Syntax
class FReplicationFragment
Derived Classes
FReplicationFragment derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FReplicationFragment
(
const FReplicationFragment& |
Iris/ReplicationSystem/ReplicationFragment.h | ||
FReplicationFragment
(
EReplicationFragmentTraits InTraits |
Iris/ReplicationSystem/ReplicationFragment.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FReplicationFragment() |
Iris/ReplicationSystem/ReplicationFragment.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyReplicatedState
(
FReplicationStateApplyContext& Context |
This is called from the ReplicationSystem / ReplicationBridge whenever we have new data Depending on the traits of the fragment we either get pointer to a StateBuffer in the expected external format including changemask information or we get the raw quantized state buffer along with the changemask information for any received states. | Iris/ReplicationSystem/ReplicationFragment.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/ReplicationFragment.h | |
virtual void CollectOwner
(
FReplicationStateOwnerCollector* Owners |
Optional method required for backwards compatibility mode which is used to propagate required calls to Pre/PostNetReceive/PostRepNotifies. | Iris/ReplicationSystem/ReplicationFragment.h | |
EReplicationFragmentTraits GetTraits() |
Traits | Iris/ReplicationSystem/ReplicationFragment.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/ReplicationFragment.h | |
virtual void ReplicatedStateToString
(
FStringBuilderBase& StringBuilder, |
Optional method to output state data to StringBuilder. | Iris/ReplicationSystem/ReplicationFragment.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FReplicationFragment & operator=
(
const FReplicationFragment& |
Iris/ReplicationSystem/ReplicationFragment.h |