Lesson 59 - Game Sessions API Data Asset
This commit is contained in:
10
Source/DedicatedServers/Private/Data/API/APIData.cpp
Normal file
10
Source/DedicatedServers/Private/Data/API/APIData.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "Data/API/APIData.h"
|
||||
|
||||
FString UAPIData::GetAPIEndPoint(const FGameplayTag& APIEndPoint)
|
||||
{
|
||||
const FString ResourceName = Resources.FindChecked(APIEndPoint);
|
||||
return InvokeUrl + "/" + Stage + "/" + ResourceName;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "GameplayTags/DedicatedServerTags.h"
|
||||
|
||||
namespace DedicatedServersTags
|
||||
{
|
||||
namespace GameSessionsAPI
|
||||
{
|
||||
UE_DEFINE_GAMEPLAY_TAG_COMMENT(ListFleets, "DedicatedServersTags.GameSessionsAPI.ListFleets", "List Fleets resource on the GameSessions API")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user