Navigation
API > API/Runtime > API/Runtime/IrisCore
Typed replication fragments are used when we have generated ReplicationStates and will call the SetReplicatedState method on the parent class $IRIS TODO: Introduce policies based on ReplicationStateTraits, i.e. should we call other functions on Init etc?
| Name | TReplicationFragment |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/TypedReplicationFragment.h |
| Include Path | #include "Iris/ReplicationSystem/TypedReplicationFragment.h" |
Syntax
template<typename T, typename ReplicationStateT>
class TReplicationFragment : protected UE::Net::FReplicationFragment
Inheritance Hierarchy
- FReplicationFragment → TReplicationFragment
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TReplicationFragment
(
T& OwnerIn |
Receive only. | Iris/ReplicationSystem/TypedReplicationFragment.h | |
TReplicationFragment
(
T& OwnerIn, |
Replicate. | Iris/ReplicationSystem/TypedReplicationFragment.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Owner | T & | Iris/ReplicationSystem/TypedReplicationFragment.h | ||
| SrcState | ReplicationStateT * | Iris/ReplicationSystem/TypedReplicationFragment.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Register
(
FFragmentRegistrationContext& Context |
Iris/ReplicationSystem/TypedReplicationFragment.h |
Protected
Overridden from FReplicationFragment
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyReplicatedState
(
FReplicationStateApplyContext& Context |
FReplicationFragment. | Iris/ReplicationSystem/TypedReplicationFragment.h |