From cb724ec3b3a6a70ad2d85b36d802a81feacf8e3b Mon Sep 17 00:00:00 2001 From: Jordon Brooks Date: Sat, 10 Jun 2023 14:45:45 +0100 Subject: [PATCH] Updated .uplugin file Renamed HarmonyLinkUEBPLibrary files to HarmonyLinkClient --- HarmonyLinkUE.uplugin | 18 +++++---- ...kUEBPLibrary.cpp => HarmonyLinkClient.cpp} | 40 +++++++++---------- ...yLinkUEBPLibrary.h => HarmonyLinkClient.h} | 6 +-- Source/HarmonyLinkUE/Public/HarmonyLinkUE.h | 2 +- 4 files changed, 34 insertions(+), 32 deletions(-) rename Source/HarmonyLinkUE/Private/{HarmonyLinkUEBPLibrary.cpp => HarmonyLinkClient.cpp} (81%) rename Source/HarmonyLinkUE/Public/{HarmonyLinkUEBPLibrary.h => HarmonyLinkClient.h} (97%) diff --git a/HarmonyLinkUE.uplugin b/HarmonyLinkUE.uplugin index 4c6cce4..c139b1c 100644 --- a/HarmonyLinkUE.uplugin +++ b/HarmonyLinkUE.uplugin @@ -1,24 +1,26 @@ { "FileVersion": 3, "Version": 1, - "VersionName": "1.0", + "VersionName": "0.1", "FriendlyName": "HarmonyLinkUE", - "Description": "", - "Category": "Other", + "Description": "A plugin that provides real-time device metrics for games running on handheld devices, starting with the Steam Deck.", + "Category": "Handheld", "CreatedBy": "Jordon Brooks", "CreatedByURL": "https://jordongamedev.co.uk", "DocsURL": "", "MarketplaceURL": "", "SupportURL": "", - "CanContainContent": true, - "IsBetaVersion": true, - "IsExperimentalVersion": false, + "EngineVersion": "5.2.0", + "CanContainContent": false, + "IsBetaVersion": false, + "IsExperimentalVersion": true, "Installed": false, "Modules": [ { "Name": "HarmonyLinkUE", "Type": "Runtime", - "LoadingPhase": "PreLoadingScreen" + "LoadingPhase": "PreLoadingScreen", + "WhitelistPlatforms": ["Win64", "Win32", "Linux"] } ] -} \ No newline at end of file +} diff --git a/Source/HarmonyLinkUE/Private/HarmonyLinkUEBPLibrary.cpp b/Source/HarmonyLinkUE/Private/HarmonyLinkClient.cpp similarity index 81% rename from Source/HarmonyLinkUE/Private/HarmonyLinkUEBPLibrary.cpp rename to Source/HarmonyLinkUE/Private/HarmonyLinkClient.cpp index d10b10f..83dbdbc 100644 --- a/Source/HarmonyLinkUE/Private/HarmonyLinkUEBPLibrary.cpp +++ b/Source/HarmonyLinkUE/Private/HarmonyLinkClient.cpp @@ -1,74 +1,74 @@ // .cpp file -#include "HarmonyLinkUEBPLibrary.h" +#include "HarmonyLinkClient.h" #include "Interfaces/IHttpResponse.h" -FAllInfo UHarmonyLinkUEBPLibrary::CachedAllInfo; -FHarmonyLinkVersionData UHarmonyLinkUEBPLibrary::CachedVersionData; -bool UHarmonyLinkUEBPLibrary::Connected; +FAllInfo UHarmonyLinkClient::CachedAllInfo; +FHarmonyLinkVersionData UHarmonyLinkClient::CachedVersionData; +bool UHarmonyLinkClient::Connected; -UHarmonyLinkUEBPLibrary::UHarmonyLinkUEBPLibrary(const FObjectInitializer& ObjectInitializer) +UHarmonyLinkClient::UHarmonyLinkClient(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { } -void UHarmonyLinkUEBPLibrary::CheckServerStatus(FServerStatusCallback Callback) +void UHarmonyLinkClient::CheckServerStatus(FServerStatusCallback Callback) { TSharedPtr Request = FHttpModule::Get().CreateRequest(); Request->SetURL(TEXT("http://localhost:9000/are_you_there")); Request->SetVerb(TEXT("GET")); - Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkUEBPLibrary::OnCheckServerStatusResponseReceived, Callback); + Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkClient::OnCheckServerStatusResponseReceived, Callback); Request->ProcessRequest(); } -void UHarmonyLinkUEBPLibrary::RefreshOSInfo(FOSInfoCallback Callback) +void UHarmonyLinkClient::RefreshOSInfo(FOSInfoCallback Callback) { TSharedPtr Request = FHttpModule::Get().CreateRequest(); Request->SetURL(TEXT("http://localhost:9000/os_info")); Request->SetVerb(TEXT("GET")); - Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkUEBPLibrary::OnOSInfoResponseReceived, Callback); + Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkClient::OnOSInfoResponseReceived, Callback); Request->ProcessRequest(); } -void UHarmonyLinkUEBPLibrary::RefreshBatteryInfo(FBatteryInfoCallback Callback) +void UHarmonyLinkClient::RefreshBatteryInfo(FBatteryInfoCallback Callback) { TSharedPtr Request = FHttpModule::Get().CreateRequest(); Request->SetURL(TEXT("http://localhost:9000/battery_info")); Request->SetVerb(TEXT("GET")); - Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkUEBPLibrary::OnBatteryInfoResponseReceived, Callback); + Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkClient::OnBatteryInfoResponseReceived, Callback); Request->ProcessRequest(); } -void UHarmonyLinkUEBPLibrary::RefreshAllInfo(FDeviceInfoCallback Callback) +void UHarmonyLinkClient::RefreshAllInfo(FDeviceInfoCallback Callback) { TSharedPtr Request = FHttpModule::Get().CreateRequest(); Request->SetURL(TEXT("http://localhost:9000/all_info")); Request->SetVerb(TEXT("GET")); - Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkUEBPLibrary::OnDeviceInfoResponseReceived, Callback); + Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkClient::OnDeviceInfoResponseReceived, Callback); Request->ProcessRequest(); } -void UHarmonyLinkUEBPLibrary::RefreshVersionInfo(FVersionInfoCallback Callback) +void UHarmonyLinkClient::RefreshVersionInfo(FVersionInfoCallback Callback) { TSharedPtr Request = FHttpModule::Get().CreateRequest(); Request->SetURL(TEXT("http://localhost:9000/version_info")); Request->SetVerb(TEXT("GET")); - Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkUEBPLibrary::OnVersionInfoResponseReceived, Callback); + Request->OnProcessRequestComplete().BindLambda(&UHarmonyLinkClient::OnVersionInfoResponseReceived, Callback); Request->ProcessRequest(); } -void UHarmonyLinkUEBPLibrary::OnCheckServerStatusResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FServerStatusCallback Callback) +void UHarmonyLinkClient::OnCheckServerStatusResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FServerStatusCallback Callback) { if (bWasSuccessful && Response.IsValid() && Response->GetResponseCode() == EHttpResponseCodes::Ok) { @@ -88,7 +88,7 @@ void UHarmonyLinkUEBPLibrary::OnCheckServerStatusResponseReceived(FHttpRequestPt } } -void UHarmonyLinkUEBPLibrary::OnOSInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FOSInfoCallback Callback) +void UHarmonyLinkClient::OnOSInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FOSInfoCallback Callback) { if (bWasSuccessful && Response.IsValid() && Response->GetResponseCode() == EHttpResponseCodes::Ok) { @@ -122,7 +122,7 @@ void UHarmonyLinkUEBPLibrary::OnOSInfoResponseReceived(FHttpRequestPtr Request, } } -void UHarmonyLinkUEBPLibrary::OnBatteryInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FBatteryInfoCallback Callback) +void UHarmonyLinkClient::OnBatteryInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FBatteryInfoCallback Callback) { if (bWasSuccessful && Response.IsValid() && Response->GetResponseCode() == EHttpResponseCodes::Ok) { @@ -164,7 +164,7 @@ void UHarmonyLinkUEBPLibrary::OnBatteryInfoResponseReceived(FHttpRequestPtr Requ } } -void UHarmonyLinkUEBPLibrary::OnDeviceInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FDeviceInfoCallback Callback) +void UHarmonyLinkClient::OnDeviceInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FDeviceInfoCallback Callback) { if (bWasSuccessful && Response.IsValid() && Response->GetResponseCode() == EHttpResponseCodes::Ok) { @@ -253,7 +253,7 @@ void UHarmonyLinkUEBPLibrary::OnDeviceInfoResponseReceived(FHttpRequestPtr Reque } -void UHarmonyLinkUEBPLibrary::OnVersionInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FVersionInfoCallback Callback) +void UHarmonyLinkClient::OnVersionInfoResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful, FVersionInfoCallback Callback) { if (bWasSuccessful && Response.IsValid() && Response->GetResponseCode() == EHttpResponseCodes::Ok) { diff --git a/Source/HarmonyLinkUE/Public/HarmonyLinkUEBPLibrary.h b/Source/HarmonyLinkUE/Public/HarmonyLinkClient.h similarity index 97% rename from Source/HarmonyLinkUE/Public/HarmonyLinkUEBPLibrary.h rename to Source/HarmonyLinkUE/Public/HarmonyLinkClient.h index 6f40747..8a54b59 100644 --- a/Source/HarmonyLinkUE/Public/HarmonyLinkUEBPLibrary.h +++ b/Source/HarmonyLinkUE/Public/HarmonyLinkClient.h @@ -1,4 +1,4 @@ -// Copyright Epic Games, Inc. All Rights Reserved. +// Copyright Jordon Brooks © 2023 #pragma once @@ -8,7 +8,7 @@ #include "Engine/World.h" #include "Engine/WorldComposition.h" -#include "HarmonyLinkUEBPLibrary.generated.h" +#include "HarmonyLinkClient.generated.h" UENUM(BlueprintType) enum class EDockModel : uint8 @@ -219,7 +219,7 @@ DECLARE_DYNAMIC_DELEGATE_OneParam(FServerStatusCallback, const bool, connected); * https://wiki.unrealengine.com/Custom_Blueprint_Node_Creation */ UCLASS() -class HARMONYLINKUE_API UHarmonyLinkUEBPLibrary : public UBlueprintFunctionLibrary +class HARMONYLINKUE_API UHarmonyLinkClient : public UBlueprintFunctionLibrary { GENERATED_UCLASS_BODY() diff --git a/Source/HarmonyLinkUE/Public/HarmonyLinkUE.h b/Source/HarmonyLinkUE/Public/HarmonyLinkUE.h index c2ed66d..d530782 100644 --- a/Source/HarmonyLinkUE/Public/HarmonyLinkUE.h +++ b/Source/HarmonyLinkUE/Public/HarmonyLinkUE.h @@ -1,4 +1,4 @@ -// Copyright Epic Games, Inc. All Rights Reserved. +// Copyright Jordon Brooks © 2023 #pragma once