aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/bansystem.h
blob: 0f61884335f753c11d769d12d61cc1e163bfab7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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;

void InitialiseBanSystem(HMODULE baseAddress);