34 Entry& operator=(Entry
const&);
39 using BanCallback = ::std::function<void(::std::string
const&)>;
41 using Ip = ::std::array<::std::byte, 16>;
43 using LoggingFunctor = ::std::function<void(::std::string
const&)>;
45 using Time = ::std::chrono::seconds;
50 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> banExpiryDuration;
51 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> appHandshakeGracePeriod;
52 ::ll::TypedStorage<8, 10240, ::std::array<::std::optional<::RakNet::ShadowBanList::Entry>, 256>> mEntries;
53 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string
const&)>> mBanCallback;
64 ::std::function<
void(::std::string
const&)> addBanCallback,
65 ::std::chrono::seconds banExpiryDuration,
66 ::std::chrono::seconds appHandshakeGracePeriod
71 MCAPI ::RakNet::RakPeer::RemoteSystemStruct* shouldDisconnectConnection(
73 ::std::chrono::seconds now,
74 ::gsl::span<::RakNet::RakPeer::RemoteSystemStruct*> remotes
79 MCAPI uint64 updateBans(::std::chrono::seconds now);
81 MCAPI ~ShadowBanList();
88 ::std::function<
void(::std::string
const&)> addBanCallback,
89 ::std::chrono::seconds banExpiryDuration,
90 ::std::chrono::seconds appHandshakeGracePeriod
Definition ShadowBanList.h:23