From 736f778dd92c71274dc359b2cd924622b1878893 Mon Sep 17 00:00:00 2001 From: thejinchao Date: Sun, 14 May 2023 11:04:35 +0800 Subject: [PATCH] implement `GetTypeHash` function for `FGrpcContextHandle`, otherwise it may cause compilation failure on UE5.2 --- Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h b/Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h index 3aa88fa..4802dc4 100644 --- a/Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h +++ b/Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h @@ -73,6 +73,11 @@ struct FGrpcContextHandle FGrpcContextHandle(const uint32& _Value) { this->Value = _Value; } }; +FORCEINLINE uint32 GetTypeHash(const FGrpcContextHandle& GrpcContextHandle) +{ + return GrpcContextHandle.Value; +} + DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnContextStateChange, FGrpcContextHandle, Handle, EGrpcContextState, NewState); UCLASS(ClassGroup = TurboLink, BlueprintType, Abstract)