aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/bansystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/bansystem.h')
-rw-r--r--NorthstarDLL/bansystem.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/NorthstarDLL/bansystem.h b/NorthstarDLL/bansystem.h
new file mode 100644
index 00000000..e78094bf
--- /dev/null
+++ b/NorthstarDLL/bansystem.h
@@ -0,0 +1,21 @@
+#pragma once
+#include <fstream>
+
+class ServerBanSystem
+{
+ private:
+ std::ofstream m_sBanlistStream;
+ std::vector<uint64_t> m_vBannedUids;
+
+ public:
+ void OpenBanlist();
+ void ReloadBanlist();
+ void ClearBanlist();
+ void BanUID(uint64_t uid);
+ void UnbanUID(uint64_t uid);
+ bool IsUIDAllowed(uint64_t uid);
+};
+
+extern ServerBanSystem* g_ServerBanSystem;
+
+void InitialiseBanSystem(HMODULE baseAddress); \ No newline at end of file