diff --git a/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml b/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml
index 25ee73e4..bbca6545 100644
--- a/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml
+++ b/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml
@@ -120,7 +120,6 @@
-
@@ -179,25 +178,25 @@
- {
+ "keyToString": {
+ "ModuleVcsDetector.initialDetectionPerformed": "true",
+ "RunOnceActivity.MCP Project settings loaded": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "RunOnceActivity.typescript.service.memoryLimit.init": "true",
+ "Uproject.FPSTemplate.executor": "Debug",
+ "git-widget-placeholder": "new/API__Gateway__v2",
+ "ignore.virus.scanning.warn.message": "true",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "settings.editor.selected.configurable": "Debugger.ObjectiveC",
+ "vue.rearranger.settings.migration": "true"
}
-}]]>
+}
@@ -64927,7 +64926,8 @@
-
+
+
@@ -64995,4 +64995,8 @@
+
+
+
+
\ No newline at end of file
diff --git a/Source/DedicatedServers/DedicatedServers.build.cs b/Source/DedicatedServers/DedicatedServers.build.cs
index 384517d2..62b42f3d 100644
--- a/Source/DedicatedServers/DedicatedServers.build.cs
+++ b/Source/DedicatedServers/DedicatedServers.build.cs
@@ -21,7 +21,9 @@ public class DedicatedServers : ModuleRules
{
"Slate",
"SlateCore",
- "UMG"
+ "UMG",
+ "Json",
+ "JsonUtilities",
});
// Adds in the plugin for GameLiftServerSDK if it is the server build.
diff --git a/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp b/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp
index 635b2366..633da4cb 100644
--- a/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp
+++ b/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp
@@ -5,6 +5,8 @@
#include "HttpModule.h"
#include "Data/API/APIData.h"
#include "GameplayTags/DedicatedServerTags.h"
+#include "Interfaces/IHttpResponse.h"
+
void UAPITestManager::ListFleetsButtonClicked()
{
@@ -25,5 +27,21 @@ void UAPITestManager::ListFleetsButtonClicked()
void UAPITestManager::ListFleets_Response(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful)
{
- GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, "List Fleets Response Received");
+ GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, "List Fleets Response Received");
+
+ TSharedPtr JsonObject;
+ TSharedRef> JsonReader = TJsonReaderFactory<>::Create(Response->GetContentAsString());
+
+ if (FJsonSerializer::Deserialize(JsonReader, JsonObject))
+ {
+ if (JsonObject->HasField(TEXT("FleetIds")))
+ {
+ for (TSharedPtr Fleet : JsonObject->GetArrayField(TEXT("FleetIds")))
+ {
+ FString FleetString = Fleet->AsString();
+ GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FleetString);
+ }
+ }
+ }
+
}