UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ReplicationFragmentInternal.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7namespace UE::Net::Private
8{
10 {
15
20
25
27 {
28 return Context.ReplicationSystem;
29 }
30
31 static bool IsMainObject(const FFragmentRegistrationContext& Context, UObject* ObjectInstance)
32 {
33 return Context.MainObjectInstance == ObjectInstance;
34 }
35
36 static void SetDefaultStateSource(FFragmentRegistrationContext& Context, const UObject* DefaultStateSource)
37 {
38 Context.MainObjectDefaultStateSource = DefaultStateSource;
39 }
40
42 {
43 return Context.MainObjectDefaultStateSource;
44 }
45
47 {
48 Context.Template = Template;
49 }
50
52 {
53 return Context.Template;
54 }
55 };
56}
Definition ReplicationFragment.h:244
Definition ReplicationStateDescriptorRegistry.h:31
Definition Object.h:95
Definition ReplicationSystem.h:70
Definition NetworkVersion.cpp:28
Definition ReplicationFragmentInternal.h:10
static void SetDefaultStateSource(FFragmentRegistrationContext &Context, const UObject *DefaultStateSource)
Definition ReplicationFragmentInternal.h:36
static const UObject * GetTemplate(const FFragmentRegistrationContext &Context)
Definition ReplicationFragmentInternal.h:51
static Private::FReplicationStateDescriptorRegistry * GetReplicationStateRegistry(FFragmentRegistrationContext &Context)
Definition ReplicationFragmentInternal.h:21
static bool IsMainObject(const FFragmentRegistrationContext &Context, UObject *ObjectInstance)
Definition ReplicationFragmentInternal.h:31
static void SetTemplate(FFragmentRegistrationContext &Context, const UObject *Template)
Definition ReplicationFragmentInternal.h:46
static const UObject * GetDefaultStateSource(const FFragmentRegistrationContext &Context)
Definition ReplicationFragmentInternal.h:41
static UReplicationSystem * GetReplicationSystem(const FFragmentRegistrationContext &Context)
Definition ReplicationFragmentInternal.h:26
static const Private::FReplicationStateDescriptorRegistry * GetReplicationStateRegistry(const FFragmentRegistrationContext &Context)
Definition ReplicationFragmentInternal.h:16
static const FReplicationFragments & GetReplicationFragments(const FFragmentRegistrationContext &Context)
Definition ReplicationFragmentInternal.h:11