UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NetworkVersion.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreTypes.h"
8#include "Logging/LogMacros.h"
10
11// The version number used for determining network compatibility. If zero, uses the engine compatible version.
12#define ENGINE_NET_VERSION 0
13
14// The version number used for determining replay compatibility
15#define ENGINE_REPLAY_VERSION ENGINE_NET_VERSION
16
18
40
45{
46 None = 0,
47 IrisEnabled = 1 << None, // Are we running the Iris or Generic replication system
48 UseRemoteObjectReferences = 1 << IrisEnabled, // Are UObjects being serialized as remote object references
49};
51
53{
57
61
65
68
69 UE_DEPRECATED(5.2, "Please use GetNetworkProtocolVersion instead.")
73
78
81
83
84 static CORE_API void RegisterNetworkCustomVersion(const FGuid& VersionGuid, int32 Version, int32 CompatibleVersion, const FName& FriendlyName);
85
92
102 static CORE_API bool IsNetworkCompatible( const uint32 LocalNetworkVersion, const uint32 RemoteNetworkVersion );
103
108
117
122
127
132
137
144
149
150protected:
151
155 static CORE_API FString& GetProjectVersion_Internal();
156
159
162
163 UE_DEPRECATED(5.2, "Now storing this value in NetworkCustomVersions, do not use directly.")
165 UE_DEPRECATED(5.2, "Now storing this value in NetworkCustomVersions, do not use directly.")
167
168 UE_DEPRECATED(5.2, "Now storing this value in CompatibleNetworkCustomVersions, do not use directly.")
170 UE_DEPRECATED(5.2, "Now storing this value in CompatibleNetworkCustomVersions, do not use directly.")
172};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
return true
Definition ExternalRpcRegistry.cpp:601
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
EEngineNetworkRuntimeFeatures
Definition NetworkVersion.h:45
uint16_t uint16
Definition binka_ue_file_header.h:7
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition CustomVersion.h:111
Definition NameTypes.h:617
Definition NetworkVersion.h:20
uint32 Changelist
Definition NetworkVersion.h:38
FString AppString
Definition NetworkVersion.h:35
FNetworkReplayVersion(const FString &InAppString, const uint32 InNetworkVersion, const uint32 InChangelist)
Definition NetworkVersion.h:28
FNetworkReplayVersion()
Definition NetworkVersion.h:22
uint32 NetworkVersion
Definition NetworkVersion.h:37
Definition UnrealType.h:3087
Definition Guid.h:109
Definition NetworkVersion.h:53
static CORE_API uint32 GetCompatibleNetworkProtocolVersion(const FGuid &VersionGuid)
Definition NetworkVersion.cpp:194
static CORE_API uint32 GetGameNetworkProtocolVersion()
Definition NetworkVersion.cpp:211
static CORE_API void DescribeNetworkRuntimeFeaturesBitset(EEngineNetworkRuntimeFeatures FeaturesBitflag, FStringBuilderBase &OutVerboseDescription)
Definition NetworkVersion.cpp:332
static CORE_API bool AreNetworkRuntimeFeaturesCompatible(EEngineNetworkRuntimeFeatures LocalFeatures, EEngineNetworkRuntimeFeatures RemoteFeatures)
Definition NetworkVersion.cpp:327
static CORE_API void SetGameNetworkProtocolVersion(uint32 GameNetworkProtocolVersion)
Definition NetworkVersion.cpp:119
DECLARE_DELEGATE_RetVal_TwoParams(bool, FIsNetworkCompatibleOverride, uint32, uint32)
static CORE_API FGetReplayCompatibleChangeListOverride GetReplayCompatibleChangeListOverride
Definition NetworkVersion.h:64
static CORE_API uint32 GetLocalNetworkVersion(bool AllowOverrideDelegate=true)
Definition NetworkVersion.cpp:255
static CORE_API bool IsNetworkCompatible(const uint32 LocalNetworkVersion, const uint32 RemoteNetworkVersion)
Definition NetworkVersion.cpp:295
static CORE_API bool bHasCachedNetworkChecksum
Definition NetworkVersion.h:157
static CORE_API FNetworkReplayVersion GetReplayVersion()
Definition NetworkVersion.cpp:305
static const FString & GetProjectVersion()
Definition NetworkVersion.h:143
static CORE_API bool bHasCachedReplayChecksum
Definition NetworkVersion.h:160
static CORE_API void SetGameCompatibleNetworkProtocolVersion(uint32 GameCompatibleNetworkProtocolVersion)
Definition NetworkVersion.cpp:132
static CORE_API uint32 GetNetworkProtocolVersion(const FGuid &VersionGuid)
Definition NetworkVersion.cpp:187
static CORE_API uint32 GetEngineCompatibleNetworkProtocolVersion()
Definition NetworkVersion.cpp:206
static CORE_API const FCustomVersionContainer & GetNetworkCustomVersions()
Definition NetworkVersion.cpp:221
static CORE_API void SetProjectVersion(const TCHAR *InVersion)
Definition NetworkVersion.cpp:106
DECLARE_DELEGATE_RetVal(uint32, FGetReplayCompatibleChangeListOverride)
DECLARE_DELEGATE_RetVal(uint32, FGetLocalNetworkVersionOverride)
static CORE_API uint32 EngineCompatibleNetworkProtocolVersion
Definition NetworkVersion.h:169
static CORE_API FIsNetworkCompatibleOverride IsNetworkCompatibleOverride
Definition NetworkVersion.h:60
static CORE_API uint32 GetEngineNetworkProtocolVersion()
Definition NetworkVersion.cpp:201
static CORE_API uint32 GetNetworkCompatibleChangelist()
Definition NetworkVersion.cpp:147
static CORE_API uint32 GetGameCompatibleNetworkProtocolVersion()
Definition NetworkVersion.cpp:216
static CORE_API FString & GetProjectVersion_Internal()
Definition NetworkVersion.cpp:88
static CORE_API uint32 EngineNetworkProtocolVersion
Definition NetworkVersion.h:164
static CORE_API FGetLocalNetworkVersionOverride GetLocalNetworkVersionOverride
Definition NetworkVersion.h:56
static void InvalidateNetworkChecksum()
Definition NetworkVersion.h:148
static CORE_API uint32 GetReplayCompatibleChangelist()
Definition NetworkVersion.cpp:173
static CORE_API uint32 CachedNetworkChecksum
Definition NetworkVersion.h:158
static CORE_API uint32 GameNetworkProtocolVersion
Definition NetworkVersion.h:166
static CORE_API uint32 CachedReplayChecksum
Definition NetworkVersion.h:161
static CORE_API uint32 GameCompatibleNetworkProtocolVersion
Definition NetworkVersion.h:171
static CORE_API void RegisterNetworkCustomVersion(const FGuid &VersionGuid, int32 Version, int32 CompatibleVersion, const FName &FriendlyName)
Definition NetworkVersion.cpp:226
Definition ResourceArray.h:31