2022-06-04 04:56:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class UserInfo : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UserInfo();
|
|
|
|
|
2022-06-04 12:52:46 -04:00
|
|
|
static void ClearClientOverrides(int client);
|
|
|
|
static void ClearAllOverrides();
|
|
|
|
|
2022-06-04 04:56:14 -04:00
|
|
|
private:
|
|
|
|
using userInfoMap = std::unordered_map<std::string, std::string>;
|
|
|
|
static std::unordered_map<int, userInfoMap> UserInfoOverrides;
|
|
|
|
|
|
|
|
static void SV_GetUserInfo_Stub(int index, char* buffer, int bufferSize);
|
|
|
|
|
|
|
|
static void AddScriptMethods();
|
|
|
|
};
|
|
|
|
}
|