VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
ServerSideClients.cpp
Go to the documentation of this file.
2
3#include <cstdint>
4
5namespace VoltMod
6{
7
9{
10 if (!bindings.ClientMessageFilter)
11 {
12 return nullptr;
13 }
14 return reinterpret_cast<const uint8_t*>(&filter) - bindings.ClientMessageFilter.Value();
15}
16
17int ClientSlot(const Bindings& bindings, const void* client)
18{
19 if (!client || !bindings.ClientSlot)
20 {
21 return -1;
22 }
23 return bindings.ClientSlot.Read(client);
24}
25
26} // namespace VoltMod
int ClientSlot(const Bindings &bindings, const void *client)
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
const void * FilterClient(const Bindings &bindings, const INetworkMessageProcessingPreFilter &filter)