VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::IPermissions Struct Referenceabstract

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IPermissions()

VoltMod::IPermissions::~IPermissions ( )
protecteddefault

Member Function Documentation

◆ HasPermission()

virtual bool VoltMod::IPermissions::HasPermission ( int64_t  steamId,
std::string_view  permission 
)
pure virtual

Whether steamId holds permission.

Member Data Documentation

◆ InterfaceName

constexpr std::string_view VoltMod::IPermissions::InterfaceName = "voltmod.IPermissions/1"
staticconstexpr

Definition at line 19 of file Permissions.hpp.


The documentation for this struct was generated from the following file: