aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-11 22:24:13 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-11 22:24:13 +0000
commitdb552e7bcf5b1c6b01dd655163e1dc0a9d840ab0 (patch)
treeeb480b2754e4ba4653940571d7a7d089d07c37d6 /NorthstarDedicatedTest/masterserver.h
parent12b5d0b85a4a1cb55b068a3fbb357c30a52c1e20 (diff)
downloadNorthstarLauncher-db552e7bcf5b1c6b01dd655163e1dc0a9d840ab0.tar.gz
NorthstarLauncher-db552e7bcf5b1c6b01dd655163e1dc0a9d840ab0.zip
write_persistence fixes and custom mainmenupromos
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.h')
-rw-r--r--NorthstarDedicatedTest/masterserver.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/masterserver.h b/NorthstarDedicatedTest/masterserver.h
index 97f5bdce..5bb3549a 100644
--- a/NorthstarDedicatedTest/masterserver.h
+++ b/NorthstarDedicatedTest/masterserver.h
@@ -40,6 +40,27 @@ public:
int port;
};
+struct MainMenuPromoData
+{
+public:
+ std::string newInfoTitle1;
+ std::string newInfoTitle2;
+ std::string newInfoTitle3;
+
+ std::string largeButtonTitle;
+ std::string largeButtonText;
+ std::string largeButtonUrl;
+ int largeButtonImageIndex;
+
+ std::string smallButton1Title;
+ std::string smallButton1Url;
+ int smallButton1ImageIndex;
+
+ std::string smallButton2Title;
+ std::string smallButton2Url;
+ int smallButton2ImageIndex;
+};
+
class MasterServerManager
{
private:
@@ -68,9 +89,13 @@ public:
std::vector<RemoteServerInfo> m_remoteServers;
+ bool m_bHasMainMenuPromoData = false;
+ MainMenuPromoData m_MainMenuPromoData;
+
public:
void ClearServerList();
void RequestServerList();
+ void RequestMainMenuPromos();
void AuthenticateOriginWithMasterServer(char* uid, char* originToken);
void AuthenticateWithOwnServer(char* uid, char* playerToken);
void AuthenticateWithServer(char* uid, char* playerToken, char* serverId, char* password);