Skip to content

Commit

Permalink
implement GetTypeHash function for FGrpcContextHandle, otherwise …
Browse files Browse the repository at this point in the history
…it may cause compilation failure on UE5.2
  • Loading branch information
thejinchao committed May 14, 2023
1 parent ab0b5a6 commit 736f778
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 736f778

Please sign in to comment.