aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.h
diff options
context:
space:
mode:
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: