UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DirectLinkCommon.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Misc/Guid.h"
8
9
10namespace DirectLink
11{
12
19
20
23
24
27
33{
34 FSceneIdentifier() = default;
35
36 FSceneIdentifier(const FGuid& Id, const FString& Name)
37 : SceneGuid(Id)
39 {}
40
41 // Id of scene SharedState
43
44 // Nice user-facing name. Do not expect it to be stable or consistent.
45 FString DisplayName;
46};
47
48
49// DirectLink exchanges messages between pairs. Those versions numbers helps making sure pairs are compatible
51
52// oldest supported version
54
55
56
58enum class EVisibility
59{
60 Public, // The connection point can accept connection requests from remote
61 Private, // The connection point is not expected to be contacted from a remote
62};
63
65{
68 Active,
69 Closed,
70};
71
73{
74 bool IsTransmitting() const { return bIsSending || bIsReceiving; }
75 bool IsProgressKnown() const { return TaskTotal > 0; };
76 float GetProgress() const { return IsProgressKnown() ? float(FMath::Clamp(TaskCompleted, 0, TaskTotal)) / TaskTotal : 0.0f; };
77
78public:
79 bool bIsSending = false;
80 bool bIsReceiving = false;
83};
84
85} // namespace DirectLink
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Visibility.h:12
Definition Guid.h:109
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592