aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-14 18:30:36 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-14 18:30:36 +0100
commitf63b853468225e2bc675cde9484a27acfe8548b5 (patch)
tree931a0fc039d40a81897f3b2f1ee81473ff32a1a4 /NorthstarDedicatedTest/serverauthentication.h
parentf425377e5b15dc97ce8caa484b3e282ec5df529c (diff)
downloadNorthstarLauncher-f63b853468225e2bc675cde9484a27acfe8548b5.tar.gz
NorthstarLauncher-f63b853468225e2bc675cde9484a27acfe8548b5.zip
add authentication with local server
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.h')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.h b/NorthstarDedicatedTest/serverauthentication.h
index b26ce2b2..38008e9b 100644
--- a/NorthstarDedicatedTest/serverauthentication.h
+++ b/NorthstarDedicatedTest/serverauthentication.h
@@ -13,6 +13,15 @@ struct AuthData
size_t pdataSize;
};
+struct AdditionalPlayerData
+{
+ bool usingLocalPdata;
+ size_t pdataSize;
+
+ double lastClientCommandQuotaStart = 0;
+ int numClientCommandsInQuota = 0;
+};
+
class ServerAuthenticationManager
{
private:
@@ -21,6 +30,7 @@ private:
public:
std::mutex m_authDataMutex;
std::unordered_map<std::string, AuthData> m_authData;
+ std::unordered_map<void*, AdditionalPlayerData> m_additionalPlayerData;
bool m_runningPlayerAuthThread = false;
public: