|
VoltMod
C++23 framework for CS2 server plugins
|
#include <IPluginEvents.hpp>
Inheritance diagram for VoltMod::IPluginEvents:Protected Member Functions | |
| ~IPluginEvents ()=default | |
Engine events, raised on every plugin in load order. Game thread only; a callback must not throw across the module boundary.
Definition at line 14 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::BuildGameSessionManifestFn = void (*)(void* context, IEntityResourceManifest* manifest) |
The next map's resource manifest, which only takes resources during this call.
Definition at line 31 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::ButtonPressFn = void (*)(void* context, int slot, std::string_view buttonId) |
A custom HUD button press, raised on the frame after it arrived. buttonId is client text.
Definition at line 35 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::CheckTransmitFn = void (*)(void* context, CCheckTransmitInfo** infoList, int infoCount) |
Definition at line 29 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::ClientConnectedFn = void (*)(void* context, int slot, int64_t steamId, std::string_view name, std::string_view address) |
Definition at line 22 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::ClientConnectingFn = bool (*)(void* context, int slot, int64_t steamId, std::string_view name, char* reason, size_t reasonSize) |
True refuses the player: later plugins are not asked, and the engine shows reason, which the callback fills with at most reasonSize bytes including the terminator.
Definition at line 20 of file IPluginEvents.hpp.
Definition at line 24 of file IPluginEvents.hpp.
Definition at line 25 of file IPluginEvents.hpp.
Definition at line 26 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::ConsoleCommandFn = bool (*)(void* context, std::string_view name, std::string_view arguments, int slot) |
True when this plugin answered it: later plugins do not see it and the engine call is blocked.
Definition at line 28 of file IPluginEvents.hpp.
Definition at line 16 of file IPluginEvents.hpp.
| using VoltMod::IPluginEvents::PlayerCommandFn = void (*)(void* context, int slot, const PlayerInput& input) |
A player's command, decoded once for every plugin.
Definition at line 33 of file IPluginEvents.hpp.
Definition at line 17 of file IPluginEvents.hpp.
|
protecteddefault |
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Before the engine admits a player, and before OnClientConnected.
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
Implemented in VoltMod::PluginContext.
|
pure virtual |
Before the engine runs a player's command. Commands are decoded only while one is subscribed.
Implemented in VoltMod::PluginContext.
|
pure virtual |
After the engine ran it.
Implemented in VoltMod::PluginContext.
|
pure virtual |
Implemented in VoltMod::PluginContext.
Takes the token a subscription returned, which is never zero. Safe during a dispatch.
Implemented in VoltMod::PluginContext.