|
VoltMod
C++23 framework for CS2 server plugins
|
The server's permission source, published by one plugin (admin-system) through runtime.Exchange.
More...
#include <Permissions.hpp>
Public Member Functions | |
| virtual bool | HasPermission (int64_t steamId, std::string_view permission)=0 |
Static Public Attributes | |
| static constexpr std::string_view | InterfaceName = "voltmod.IPermissions/1" |
Protected Member Functions | |
| ~IPermissions ()=default | |
The server's permission source, published by one plugin (admin-system) through runtime.Exchange.
Every runtime's default Policy::HasPermission asks it on each call, so .Permission("x") works in any plugin while the publisher is loaded, and denies while it is not. Any change to this vtable or to what a parameter means bumps the /N in InterfaceName.
Definition at line 17 of file Permissions.hpp.
|
protecteddefault |
|
pure virtual |
Whether steamId holds permission.
|
staticconstexpr |
Definition at line 19 of file Permissions.hpp.