aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/limits.h
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-18 00:00:39 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-07-18 00:00:39 +0100
commitb0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (patch)
tree5bdc39717bebfc437adf8683405d58d97e1f43b2 /NorthstarDLL/limits.h
parent6ae30c9b15fcc200c7b642016e7adbfdf9b979f4 (diff)
downloadNorthstarLauncher-b0bef05111a95a4cce6250d2b79e2aa5baa6dd98.tar.gz
NorthstarLauncher-b0bef05111a95a4cce6250d2b79e2aa5baa6dd98.zip
use modular ServerPresence system for registering servers
Diffstat (limited to 'NorthstarDLL/limits.h')
-rw-r--r--NorthstarDLL/limits.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/NorthstarDLL/limits.h b/NorthstarDLL/limits.h
index 2303ba5e..cf87b745 100644
--- a/NorthstarDLL/limits.h
+++ b/NorthstarDLL/limits.h
@@ -1,5 +1,5 @@
#pragma once
-#include "r2server.h"
+#include "r2engine.h"
#include "convar.h"
#include <unordered_map>
@@ -32,13 +32,13 @@ class ServerLimitsManager
ConVar* Cvar_sv_querylimit_per_sec;
ConVar* Cvar_sv_max_chat_messages_per_sec;
- std::unordered_map<R2::CBasePlayer*, PlayerLimitData> m_PlayerLimitData;
+ std::unordered_map<R2::CBaseClient*, PlayerLimitData> m_PlayerLimitData;
std::vector<UnconnectedPlayerLimitData> m_UnconnectedPlayerLimitData;
public:
- void AddPlayer(R2::CBasePlayer* player);
- bool CheckStringCommandLimits(R2::CBasePlayer* player);
- bool CheckChatLimits(R2::CBasePlayer* player);
+ void AddPlayer(R2::CBaseClient* player);
+ bool CheckStringCommandLimits(R2::CBaseClient* player);
+ bool CheckChatLimits(R2::CBaseClient* player);
};
extern ServerLimitsManager* g_pServerLimits;