From 63b467f81da82c0ac9f7066182240130b4718bf5 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Wed, 9 Aug 2017 16:17:26 -0700 Subject: [PATCH] wip make plugin do stuff --- .../unrealstatus/Content/ShowTheUILevel.umap | Bin 662378 -> 672143 bytes .../Private/DiscordRpcBlueprint.cpp | 30 ++++++++++++++++++ .../Source/discordrpc/Private/discordrpc.cpp | 2 -- .../discordrpc/Public/DiscordRpcBlueprint.h | 27 ++++++++++++++++ .../Source/discordrpc/discordrpc.Build.cs | 6 +++- 5 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp create mode 100644 examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h diff --git a/examples/unrealstatus/Content/ShowTheUILevel.umap b/examples/unrealstatus/Content/ShowTheUILevel.umap index 39b23e234e67fb0fa85a5778b431eb21111bb49d..d99a0aa695aeb5d1e3864d76ab18eb1f9118bf58 100644 GIT binary patch delta 24769 zcmeHP2Y6J~wmv5X5(p$f3Yi4Rgj7gELV9Rv1dv{Al!TB>Fa$^-iNXa92;xOLn<_O@ zEFeaLih=@qRrFy2@mdf?5wTzaRK&(x|2})4IWw6_xN`6N-uu3{=i77E-s@j$uf29Z z=gfTlbkwqW(aX0_`f`b)xGRb>qux@W>K~Lk_y!6d%P^`Q?@r)=h2CBGd%aMUvQLG893` zYZSg*Qa?={rUtd6bhnX3(@QI=x)qmJ7L`vgo?cO;M3`3WtUuzi$EALWdttNi4us0J zloVD^t|}sS@rB$VclS}_*QNH=%sJ`-gyvv**9Ti-oy z^(Wi^-6a4u7-1>0l-_9(3X~(OrvAXj20h0;GopHGPT}Oq6AFvUDwUgOUnr~h4<4nq zf$EWWR96+3-!)YkHe&YX`bizi+-q7;HbQ&tqWn$`7bs|Z-l0Z#n~3LcCx;3nJVd;S z8mUN~!CJb87l^h;kj$=HlJinT$Fk?4z{Yr~c5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atus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp new file mode 100644 index 0000000..9635288 --- /dev/null +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/DiscordRpcBlueprint.cpp @@ -0,0 +1,30 @@ + + +#include "DiscordRpcBlueprint.h" + +#include "discord-rpc.h" + +DEFINE_LOG_CATEGORY(DiscordLogCategory) + +/*static*/ void UDiscordRpcBlueprint::Initialize(const FString& applicationId, bool autoRegister) +{ + 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); + }; + auto appId = StringCast(*applicationId); + Discord_Initialize((const char*)appId.Get(), &handlers, autoRegister); +} + +/*static*/ void UDiscordRpcBlueprint::Shutdown() +{ + Discord_Shutdown(); +} + +/*static*/ void UDiscordRpcBlueprint::RunCallbacks() +{ + Discord_RunCallbacks(); +} diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/discordrpc.cpp b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/discordrpc.cpp index 132fa23..13e1380 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/discordrpc.cpp +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Private/discordrpc.cpp @@ -5,8 +5,6 @@ #include "ModuleManager.h" #include "IPluginManager.h" -#include "discord-rpc.h" - #define LOCTEXT_NAMESPACE "FdiscordrpcModule" void FdiscordrpcModule::StartupModule() diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h new file mode 100644 index 0000000..0141256 --- /dev/null +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/Public/DiscordRpcBlueprint.h @@ -0,0 +1,27 @@ + + +#pragma once + +#include "Engine.h" +#include "CoreMinimal.h" +#include "DiscordRpcBlueprint.generated.h" + +DECLARE_LOG_CATEGORY_EXTERN(DiscordLogCategory, Log, All); + +/** + * + */ +UCLASS() +class DISCORDRPC_API UDiscordRpcBlueprint : public UBlueprintFunctionLibrary +{ + GENERATED_BODY() + + 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 shut down connection", Keywords = "Discord rpc"), Category = "Discord") + static void Shutdown(); + + UFUNCTION(BlueprintCallable, meta = (DisplayName = "Discord check for callbacks", Keywords = "Discord rpc"), Category = "Discord") + static void RunCallbacks(); +}; diff --git a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/discordrpc.Build.cs b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/discordrpc.Build.cs index 7d9af83..d34e809 100644 --- a/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/discordrpc.Build.cs +++ b/examples/unrealstatus/Plugins/discordrpc/Source/discordrpc/discordrpc.Build.cs @@ -35,7 +35,11 @@ public class discordrpc : ModuleRules PublicDependencyModuleNames.AddRange( new string[] { - "Core", + "CoreUObject", + "Engine", + "Slate", + "SlateCore", + "Core", "discordrpcLibrary", "Projects" // ... add other public dependencies that you statically link with here ...