From 432166ef1dd3319bd27422918eda725d3c348706 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Wed, 16 Aug 2017 11:31:54 -0700 Subject: [PATCH] Expose all the callback events, hook up connect/disconnect events in example --- .../unrealstatus/Content/ShowTheUILevel.umap | Bin 684467 -> 719001 bytes .../Private/DiscordRpcBlueprint.cpp | 5 ++- .../discordrpc/Public/DiscordRpcBlueprint.h | 30 +++++++++++++++--- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/examples/unrealstatus/Content/ShowTheUILevel.umap b/examples/unrealstatus/Content/ShowTheUILevel.umap index 8c72286e1197a66be8b44ab9615a7376cdb49369..3074ffec2c7dd1e7022db5f5d2c2e31c833b14da 100644 GIT binary patch delta 44839 zcmeIb2YeO9`air22_z68Kmw!y36MrhA<0PqA*3gCqzM8Ea41p&NoWct6zP3{LlcN7 z3L;%lkt!-8qIglS3P=$V^(uC;@qfOvGn+jpdrnZe_r34^{3f3{yZf|x=6Rl}TeA0R z#F}rLEq(H#y+107yP_yv^2S=}P)R9K6{Uc(On_FlD9SWC_K#4M8aW!K;xI))u1&eo z(WM(tdLPd?^3ua6tIgWt3wH29mYd?OR8)TH9nT`wdMs3p_D>*=r_UOSAj;d6_Wrnc zyxOvISXH`C&bQ`{8kaY6Y@u?yZmheP9jHK=wkYM#y&FBYRSc+2n3M?xg?VGrCyX6Z zI5KZ+m)tQ{C3pM6Z}(<-9acNlB!X1yXzTFYLaQWEYCjQWGa|a>=Z&-G7fw-v2Y=kU zmVu*(b(l5ZI(CRviKw0#!75k3(Z31MBMXM)&gF{Ue8u%`Kde zZ&mVtcsnetl$Nu&Aa6J;X87Kl)h|>SS%sLa`T2SIDS1P!N}m?r%&R6Lovj50xx=l> zxC`ITg8pguTSpHgEefrZ3$w-!%Tvxw^E)4Gf@s~kOJ1RYSZU=}$o9Tfb4~>>HzLpM zm8xWK-Wtbx`pnIMNwW$ZtEgN)mRHLYs6y))ZsR{QK70(c9b>wXqJugN9V(5WY-ru4 z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07D~hSYnjD#D+G4LQdHM z%B7aMB(}_DkP8$e+j0V4Y;0o7=`?nay)8^FC()Ls9U&INFX+wqtBerun}oWKu{U2OHyi%f|Fz#?SQfS6@Av;s5smLn zF$1hN}s acgP-)Jt4P(+#0eMWbdc9ztQHK=>G%w(>Qtn diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp index be8de6b..08d5746 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp @@ -11,13 +11,16 @@ static void ReadyHandler() { UE_LOG(Discord, Log, TEXT("Discord connected")); if (self) { self->IsConnected = true; + self->OnConnected.Broadcast(); } } static void DisconnectHandler(int errorCode, const char* message) { - UE_LOG(Discord, Log, TEXT("Discord disconnected (%d): %s"), errorCode, message); + auto msg = FString(message); + UE_LOG(Discord, Log, TEXT("Discord disconnected (%d): %s"), errorCode, *msg); if (self) { self->IsConnected = false; + self->OnDisconnected.Broadcast(errorCode, msg); } }; diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h index fa9fd21..6351404 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h @@ -8,6 +8,12 @@ DECLARE_LOG_CATEGORY_EXTERN(Discord, Log, All); +DECLARE_DYNAMIC_MULTICAST_DELEGATE(FDiscordConnected); +DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FDiscordDisconnected, int, errorCode, const FString&, errorMessage); +DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FDiscordErrored, int, errorCode, const FString&, errorMessage); +DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FDiscordJoin, const FString&, joinSecret); +DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FDiscordSpectate, const FString&, spectateSecret); + /** * */ @@ -18,15 +24,31 @@ class DISCORDRPC_API UDiscordRpc : public UObject public: - UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord initialize connection", Keywords = "Discord rpc"), Category = "Discord") + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Initialize connection", Keywords = "Discord rpc"), Category = "Discord") void Initialize(const FString& applicationId, bool autoRegister); - UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord shut down connection", Keywords = "Discord rpc"), Category = "Discord") + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Shut down connection", Keywords = "Discord rpc"), Category = "Discord") void Shutdown(); - UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord check for callbacks", Keywords = "Discord rpc"), Category = "Discord") + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Check for callbacks", Keywords = "Discord rpc"), Category = "Discord") void RunCallbacks(); - UPROPERTY(BlueprintReadOnly, meta = (DisplayName = "Discord connected", Keywords = "Discord rpc"), Category = "Discord") + UPROPERTY(BlueprintReadOnly, meta = (DisplayName = "Is Discord connected", Keywords = "Discord rpc"), Category = "Discord") bool IsConnected; + + UPROPERTY(BlueprintAssignable, meta = (DisplayName = "On connection", Keywords = "Discord rpc"), Category = "Discord") + FDiscordConnected OnConnected; + + UPROPERTY(BlueprintAssignable, meta = (DisplayName = "On disconnection", Keywords = "Discord rpc"), Category = "Discord") + FDiscordDisconnected OnDisconnected; + + UPROPERTY(BlueprintAssignable, meta = (DisplayName = "On error message", Keywords = "Discord rpc"), Category = "Discord") + FDiscordErrored OnErrored; + + UPROPERTY(BlueprintAssignable, meta = (DisplayName = "When Discord user presses join", Keywords = "Discord rpc"), Category = "Discord") + FDiscordJoin OnJoin; + + UPROPERTY(BlueprintAssignable, meta = (DisplayName = "When Discord user presses spectate", Keywords = "Discord rpc"), Category = "Discord") + FDiscordSpectate OnSpectate; + };