diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-27 01:13:14 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-27 01:13:14 +0100 |
commit | 0de847bb4832c201233c87fa37867b9d89f0e8c8 (patch) | |
tree | f05add722b788d32aae40663e7748234452a3443 /NorthstarDLL/bansystem.h | |
parent | 2171d95e1221442081bade7929c05b82ca0f2a08 (diff) | |
download | NorthstarLauncher-0de847bb4832c201233c87fa37867b9d89f0e8c8.tar.gz NorthstarLauncher-0de847bb4832c201233c87fa37867b9d89f0e8c8.zip |
rename project folder (:tf: commit log)
Diffstat (limited to 'NorthstarDLL/bansystem.h')
-rw-r--r-- | NorthstarDLL/bansystem.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/NorthstarDLL/bansystem.h b/NorthstarDLL/bansystem.h new file mode 100644 index 00000000..8080da91 --- /dev/null +++ b/NorthstarDLL/bansystem.h @@ -0,0 +1,18 @@ +#pragma once +#include <fstream> + +class ServerBanSystem +{ + private: + std::ofstream m_sBanlistStream; + std::vector<uint64_t> m_vBannedUids; + + public: + void OpenBanlist(); + void ClearBanlist(); + void BanUID(uint64_t uid); + void UnbanUID(uint64_t uid); + bool IsUIDAllowed(uint64_t uid); +}; + +extern ServerBanSystem* g_ServerBanSystem; |