aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/bansystem.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-02 03:06:04 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-02 03:06:04 +0000
commit5514ff036dbdbf7f4000934223a0d21bf0b9085d (patch)
treef0320ef7f2ccd029bc04339d6f4b63e4ffdab7e8 /NorthstarDedicatedTest/bansystem.h
parent4ad3342f6ce8ac4e9976f5eab5410c58b420a6a4 (diff)
downloadNorthstarLauncher-5514ff036dbdbf7f4000934223a0d21bf0b9085d.tar.gz
NorthstarLauncher-5514ff036dbdbf7f4000934223a0d21bf0b9085d.zip
initial work for ban system
Diffstat (limited to 'NorthstarDedicatedTest/bansystem.h')
-rw-r--r--NorthstarDedicatedTest/bansystem.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/bansystem.h b/NorthstarDedicatedTest/bansystem.h
new file mode 100644
index 00000000..ea715ea2
--- /dev/null
+++ b/NorthstarDedicatedTest/bansystem.h
@@ -0,0 +1,17 @@
+#pragma once
+
+class ServerBanSystem
+{
+private:
+ std::ofstream m_sBanlistStream;
+ std::vector<uint64_t> m_vBannedUids;
+
+public:
+ void OpenBanlist();
+ void BanUID(uint64_t uid);
+ bool IsUIDAllowed(uint64_t uid);
+};
+
+extern ServerBanSystem* g_ServerBanSystem;
+
+void InitialiseBanSystem(HMODULE baseAddress); \ No newline at end of file