UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ISMPartitionClient.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
5#include "Misc/Guid.h"
6#include "ISMPartitionClient.generated.h"
7
10{
12
13 FISMClientHandle() = default;
14
15 bool IsValid() const { return Index >= 0 && Guid.IsValid(); }
16
17 explicit operator bool() const
18 {
19 return IsValid();
20 }
21
23 {
24 return Index == InRHS.Index
25 && Guid == InRHS.Guid;
26 }
27
29 {
30 return !(*this == InRHS);
31 }
32
34 {
35 Ar << Index;
36 Ar << Guid;
37 }
38
40 {
41 return GetTypeHash(InHandle.Guid);
42 }
43
44private:
45 friend class AISMPartitionActor;
46
48 : Index(ClientIndex)
50 {
51
52 }
53
54 UPROPERTY()
56
57 UPROPERTY()
58 FGuid Guid;
59};
60
62{
63 explicit operator bool() const
64 {
65 return Handle.IsValid()
66 && Index != INDEX_NONE;
67 }
68
70 {
71 return Handle == InRHS.Handle
72 && Index == InRHS.Index;
73 }
74
76 {
77 return !(*this == InRHS);
78 }
79
81 {
82 return HashCombine(GetTypeHash(InId.Index), GetTypeHash(InId.Handle));
83 }
84
87};
@ INDEX_NONE
Definition CoreMiscDefines.h:150
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
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
constexpr uint32 HashCombine(uint32 A, uint32 C)
Definition TypeHash.h:36
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition ISMPartitionActor.h:21
Definition Archive.h:1208
U16 Index
Definition radfft.cpp:71
Definition Guid.h:109
Definition ISMPartitionClient.h:10
bool operator!=(const FISMClientHandle &InRHS) const
Definition ISMPartitionClient.h:28
void Serialize(FArchive &Ar)
Definition ISMPartitionClient.h:33
FISMClientHandle()=default
bool operator==(const FISMClientHandle &InRHS) const
Definition ISMPartitionClient.h:22
bool IsValid() const
Definition ISMPartitionClient.h:15
friend uint32 GetTypeHash(const FISMClientHandle &InHandle)
Definition ISMPartitionClient.h:39
Definition ISMPartitionClient.h:62
FISMClientHandle Handle
Definition ISMPartitionClient.h:85
bool operator!=(const FISMClientInstanceId &InRHS) const
Definition ISMPartitionClient.h:75
friend uint32 GetTypeHash(const FISMClientInstanceId &InId)
Definition ISMPartitionClient.h:80
bool operator==(const FISMClientInstanceId &InRHS) const
Definition ISMPartitionClient.h:69