Skip to content

Commit

Permalink
Merge branch 'main' of github.com:thejinchao/turbolink
Browse files Browse the repository at this point in the history
  • Loading branch information
thejinchao committed May 19, 2023
2 parents 2cede61 + 736f778 commit 5c901ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/TurboLinkGrpc/Private/TurboLinkGrpcModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ void FTurboLinkGrpcModule::RegisterAllGrpcMessageScriptStruct()
}

//add message script struct to map
#if (ENGINE_MAJOR_VERSION==5 && ENGINE_MINOR_VERSION>=1) || ENGINE_MAJOR_VERSION>5
UScriptStruct* scriptStruct = FindFirstObject<UScriptStruct>(*grpcMessageName);
#else
UScriptStruct* scriptStruct = FindObject<UScriptStruct>(ANY_PACKAGE, *grpcMessageName, true);
#endif
if (scriptStruct)
{
FName grpcMessageTagName = FName(*(scriptStruct->GetDisplayNameText().ToString()));
Expand Down
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 5c901ba

Please sign in to comment.