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

#include <PluginContext.hpp>

Public Attributes

LoaderHandoff Start
IPluginGameData * GameData = nullptr
IPluginAddons * Addons = nullptr
 null downloads nothing
Schema::LiveFieldLookup SchemaFields
 empty finds nothing
uint64_t NextToken = 1
 unique across every event and the service table, never zero, never reused
uint64_t NextOrder = 1
 load positions keep rising, so a reloaded plugin dispatches last
std::string CurrentMap
PerSlot< std::optional< ConnectedClient > > Clients
CallbackList< IPluginEvents::FrameFn > Frame
CallbackList< IPluginEvents::ServerStartupFn > ServerStartup
CallbackList< IPluginEvents::ClientConnectingFn > ClientConnecting
CallbackList< IPluginEvents::ClientConnectedFn > ClientConnected
CallbackList< IPluginEvents::ClientDisconnectedFn > ClientDisconnected
CallbackList< IPluginEvents::ClientFullyConnectedFn > ClientFullyConnected
CallbackList< IPluginEvents::ClientSettingsChangedFn > ClientSettingsChanged
CallbackList< IPluginEvents::ConsoleCommandFn > ConsoleCommand
CallbackList< IPluginEvents::CheckTransmitFn > CheckTransmit
CallbackList< IPluginEvents::BuildGameSessionManifestFn > BuildGameSessionManifest
CallbackList< IPluginEvents::PlayerCommandFn > PlayerCommand
CallbackList< IPluginEvents::PlayerCommandFn > PlayerCommandDone
CallbackList< IPluginEvents::ButtonPressFn > ButtonPress
PublishedInterfaces Services
CommandNames Commands
LanguageTable Languages

Detailed Description

Process-wide host state behind every plugin's view. Owned by PluginRegistry, which outlives every view. Game thread only; nothing locks.

Definition at line 38 of file PluginContext.hpp.

Member Data Documentation

◆ Addons

IPluginAddons* VoltMod::SharedState::Addons = nullptr

null downloads nothing

Definition at line 42 of file PluginContext.hpp.

◆ BuildGameSessionManifest

CallbackList<IPluginEvents::BuildGameSessionManifestFn> VoltMod::SharedState::BuildGameSessionManifest

Definition at line 62 of file PluginContext.hpp.

◆ ButtonPress

CallbackList<IPluginEvents::ButtonPressFn> VoltMod::SharedState::ButtonPress

Definition at line 65 of file PluginContext.hpp.

◆ CheckTransmit

CallbackList<IPluginEvents::CheckTransmitFn> VoltMod::SharedState::CheckTransmit

Definition at line 61 of file PluginContext.hpp.

◆ ClientConnected

CallbackList<IPluginEvents::ClientConnectedFn> VoltMod::SharedState::ClientConnected

Definition at line 56 of file PluginContext.hpp.

◆ ClientConnecting

CallbackList<IPluginEvents::ClientConnectingFn> VoltMod::SharedState::ClientConnecting

Definition at line 55 of file PluginContext.hpp.

◆ ClientDisconnected

CallbackList<IPluginEvents::ClientDisconnectedFn> VoltMod::SharedState::ClientDisconnected

Definition at line 57 of file PluginContext.hpp.

◆ ClientFullyConnected

CallbackList<IPluginEvents::ClientFullyConnectedFn> VoltMod::SharedState::ClientFullyConnected

Definition at line 58 of file PluginContext.hpp.

◆ Clients

PerSlot<std::optional<ConnectedClient> > VoltMod::SharedState::Clients

Definition at line 51 of file PluginContext.hpp.

◆ ClientSettingsChanged

CallbackList<IPluginEvents::ClientSettingsChangedFn> VoltMod::SharedState::ClientSettingsChanged

Definition at line 59 of file PluginContext.hpp.

◆ Commands

CommandNames VoltMod::SharedState::Commands

Definition at line 68 of file PluginContext.hpp.

◆ ConsoleCommand

CallbackList<IPluginEvents::ConsoleCommandFn> VoltMod::SharedState::ConsoleCommand

Definition at line 60 of file PluginContext.hpp.

◆ CurrentMap

std::string VoltMod::SharedState::CurrentMap

Replayed to a plugin loaded mid-map; empty until the first map starts.

Definition at line 50 of file PluginContext.hpp.

◆ Frame

CallbackList<IPluginEvents::FrameFn> VoltMod::SharedState::Frame

Definition at line 53 of file PluginContext.hpp.

◆ GameData

IPluginGameData* VoltMod::SharedState::GameData = nullptr

Definition at line 41 of file PluginContext.hpp.

◆ Languages

LanguageTable VoltMod::SharedState::Languages

Definition at line 69 of file PluginContext.hpp.

◆ NextOrder

uint64_t VoltMod::SharedState::NextOrder = 1

load positions keep rising, so a reloaded plugin dispatches last

Definition at line 47 of file PluginContext.hpp.

◆ NextToken

uint64_t VoltMod::SharedState::NextToken = 1

unique across every event and the service table, never zero, never reused

Definition at line 46 of file PluginContext.hpp.

◆ PlayerCommand

CallbackList<IPluginEvents::PlayerCommandFn> VoltMod::SharedState::PlayerCommand

Definition at line 63 of file PluginContext.hpp.

◆ PlayerCommandDone

CallbackList<IPluginEvents::PlayerCommandFn> VoltMod::SharedState::PlayerCommandDone

Definition at line 64 of file PluginContext.hpp.

◆ SchemaFields

Schema::LiveFieldLookup VoltMod::SharedState::SchemaFields

empty finds nothing

Definition at line 44 of file PluginContext.hpp.

◆ ServerStartup

CallbackList<IPluginEvents::ServerStartupFn> VoltMod::SharedState::ServerStartup

Definition at line 54 of file PluginContext.hpp.

◆ Services

PublishedInterfaces VoltMod::SharedState::Services

Definition at line 67 of file PluginContext.hpp.

◆ Start

LoaderHandoff VoltMod::SharedState::Start

Definition at line 40 of file PluginContext.hpp.


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