UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NetContext.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "HAL/PlatformMisc.h"
6
7// Forward declarations
8namespace UE::Net::Private
9{
10 class FNetRPC;
11}
13
14namespace UE::Net
15{
16
19{
20public:
21
26 static bool IsInsideNetRPC() { return bIsInRPCStack; }
27
28private:
29
31
32 FNetContext() = delete;
33 ~FNetContext() = delete;
34
35 static NETCORE_API bool bIsInRPCStack;
36};
37
38
41{
42private:
43
44 // Only friend class are allowed to push the net context
46 friend FObjectReplicator;
47
50};
51
52} // end namespace UE::Net
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition DataReplication.h:74
Definition NetContext.h:19
static bool IsInsideNetRPC()
Definition NetContext.h:26
Definition NetContext.h:41
Definition NetRPC.h:16
Definition NetworkVersion.cpp:28
Definition NetworkVersion.cpp:28