From bd995f047de05b96e37c3c54ab068bf998fcd926 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Thu, 10 Aug 2017 11:50:52 -0700 Subject: [PATCH] change to a UObject --- .../unrealstatus/Content/ShowTheUILevel.umap | Bin 672143 -> 684467 bytes .../Private/DiscordRpcBlueprint.cpp | 34 ++++++++++++------ .../discordrpc/Public/DiscordRpcBlueprint.h | 21 ++++++----- 3 files changed, 37 insertions(+), 18 deletions(-) diff --git a/examples/unrealstatus/Content/ShowTheUILevel.umap b/examples/unrealstatus/Content/ShowTheUILevel.umap index d99a0aa695aeb5d1e3864d76ab18eb1f9118bf58..8c72286e1197a66be8b44ab9615a7376cdb49369 100644 GIT binary patch delta 36753 zcmeHQ33wI7vYrV6k`N#vA#joqPC^nAwrnI}CuC&}`z}kC69|MPWML6Bpa>TQ1saJc z3aFrfvPD4zWDyh;aYNK6*In_d*DG#_qP+Thy64PULBado@4nahI@4WMT~%FOUER}X z=A3(OkFEP8cEzL9UfrrF^%X_QEi1LqrGavrswkC|Wy+;OuS7*Dqib-qqI@${!~8T- zQIH#qQk3o6JG6}%_UoYiht7WZ)CtqOXpVN^<*E27^^~7SrLZ`)C5u)Qg4MF~WGGc%6*44-T41nQf z6;;KhQ zg*g>@V9D{H{Aix!V`5nng)At+hkW1 zTS^N{=H}+juqgG8ztpJir2j6Du_45AKw@rLp=DBzrPNYUT#!*=$*Zzx7EuwIL@(A>$wuAD@hg6i6TPmvND#@!CF0A_|=n*xj z2{2+P`&3lq%~ggKHG7+_Y3gDlVD}?@$^(aAs9q z_s|_4O>{3&#-z+VSNCaHoyrv(LB1t5P>yx0+FMs^Ua8h#Xh!xctxD;vBPW*MRDzKl zS!t;lU0gVY4Ac0lTV`RfscXWK{Kt+J%5;`$Wmb`EwCux-<8=|Q1TJ`eSU)k zQRm~H({`XwL$oA6E~`-LvLkL*)dTEEn-KMW_V+d+_1Dw%Dr3L3NmU22p^+`>-%oXG zDVNQNY|-E`g7r~YX=G5%BUJPd6B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ordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp index 9635288..be8de6b 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp @@ -4,27 +4,41 @@ #include "discord-rpc.h" -DEFINE_LOG_CATEGORY(DiscordLogCategory) +DEFINE_LOG_CATEGORY(Discord) -/*static*/ void UDiscordRpcBlueprint::Initialize(const FString& applicationId, bool autoRegister) +static UDiscordRpc* self = nullptr; +static void ReadyHandler() { + UE_LOG(Discord, Log, TEXT("Discord connected")); + if (self) { + self->IsConnected = true; + } +} + +static void DisconnectHandler(int errorCode, const char* message) { + UE_LOG(Discord, Log, TEXT("Discord disconnected (%d): %s"), errorCode, message); + if (self) { + self->IsConnected = false; + } +}; + +void UDiscordRpc::Initialize(const FString& applicationId, bool autoRegister) { + self = this; + IsConnected = false; DiscordEventHandlers handlers{}; - handlers.ready = []() { - UE_LOG(DiscordLogCategory, Log, TEXT("Discord connected")); - }; - handlers.disconnected = [](int errorCode, const char* message) { - UE_LOG(DiscordLogCategory, Log, TEXT("Discord disconnected (%d): %s"), errorCode, message); - }; + handlers.ready = ReadyHandler; + handlers.disconnected = DisconnectHandler; auto appId = StringCast(*applicationId); Discord_Initialize((const char*)appId.Get(), &handlers, autoRegister); } -/*static*/ void UDiscordRpcBlueprint::Shutdown() +void UDiscordRpc::Shutdown() { Discord_Shutdown(); + self = nullptr; } -/*static*/ void UDiscordRpcBlueprint::RunCallbacks() +void UDiscordRpc::RunCallbacks() { Discord_RunCallbacks(); } diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h index 0141256..fa9fd21 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h @@ -6,22 +6,27 @@ #include "CoreMinimal.h" #include "DiscordRpcBlueprint.generated.h" -DECLARE_LOG_CATEGORY_EXTERN(DiscordLogCategory, Log, All); +DECLARE_LOG_CATEGORY_EXTERN(Discord, Log, All); /** * */ -UCLASS() -class DISCORDRPC_API UDiscordRpcBlueprint : public UBlueprintFunctionLibrary +UCLASS(BlueprintType, meta = (DisplayName = "Discord RPC"), Category = "Discord") +class DISCORDRPC_API UDiscordRpc : public UObject { - GENERATED_BODY() + GENERATED_BODY() + +public: - UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord Initialize connection", Keywords = "Discord rpc"), Category = "Discord") - static void Initialize(const FString& applicationId, bool autoRegister); + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord 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") - static void Shutdown(); + void Shutdown(); UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord check for callbacks", Keywords = "Discord rpc"), Category = "Discord") - static void RunCallbacks(); + void RunCallbacks(); + + UPROPERTY(BlueprintReadOnly, meta = (DisplayName = "Discord connected", Keywords = "Discord rpc"), Category = "Discord") + bool IsConnected; };