aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/bansystem.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-27 01:13:14 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-27 01:13:14 +0100
commit0de847bb4832c201233c87fa37867b9d89f0e8c8 (patch)
treef05add722b788d32aae40663e7748234452a3443 /NorthstarDLL/bansystem.h
parent2171d95e1221442081bade7929c05b82ca0f2a08 (diff)
downloadNorthstarLauncher-0de847bb4832c201233c87fa37867b9d89f0e8c8.tar.gz
NorthstarLauncher-0de847bb4832c201233c87fa37867b9d89f0e8c8.zip
rename project folder (:tf: commit log)
Diffstat (limited to 'NorthstarDLL/bansystem.h')
-rw-r--r--NorthstarDLL/bansystem.h18
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;