#pragma once namespace Components { class Bans : public Component { public: using banEntry = std::pair; Bans(); static std::unique_lock Lock(); static void BanClient(Game::client_t* cl, const std::string& reason); static void UnbanClient(SteamID id); static void UnbanClient(Game::netIP_t ip); static bool IsBanned(const banEntry& entry); static void InsertBan(const banEntry& entry); private: struct BanList { std::vector idList; std::vector ipList; }; static void LoadBans(BanList* list); static void SaveBans(const BanList* list); }; }