|
VoltMod
C++23 framework for CS2 server plugins
|
#include <PluginContext.hpp>
Process-wide host state behind every plugin's view. Owned by PluginRegistry, which outlives every view. Game thread only; nothing locks.
Definition at line 37 of file PluginContext.hpp.
| IPluginAddons* VoltMod::SharedState::Addons = nullptr |
null downloads nothing
Definition at line 41 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::Add(), VoltMod::PluginContext::IsReady(), VoltMod::PluginContext::Remove(), and VoltMod::PluginContext::RemoveAll().
| CallbackList<IPluginEvents::BuildGameSessionManifestFn> VoltMod::SharedState::BuildGameSessionManifest |
Definition at line 62 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnBuildGameSessionManifest(), and VoltMod::PluginRegistry::RaiseBuildGameSessionManifest().
| CallbackList<IPluginEvents::ButtonPressFn> VoltMod::SharedState::ButtonPress |
Definition at line 65 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnButtonPress(), and VoltMod::PluginRegistry::RaiseButtonPress().
| CallbackList<IPluginEvents::CheckTransmitFn> VoltMod::SharedState::CheckTransmit |
Definition at line 61 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnCheckTransmit(), and VoltMod::PluginRegistry::RaiseCheckTransmit().
| CallbackList<IPluginEvents::ClientConnectedFn> VoltMod::SharedState::ClientConnected |
Definition at line 56 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnClientConnected(), VoltMod::PluginRegistry::RaiseClientConnected(), and VoltMod::PluginContext::ReplayMissedEvents().
| CallbackList<IPluginEvents::ClientConnectingFn> VoltMod::SharedState::ClientConnecting |
Definition at line 55 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnClientConnecting(), and VoltMod::PluginRegistry::RaiseClientConnecting().
| CallbackList<IPluginEvents::ClientDisconnectedFn> VoltMod::SharedState::ClientDisconnected |
Definition at line 57 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::DisconnectClients(), VoltMod::PluginContext::OnClientDisconnected(), and VoltMod::PluginRegistry::RaiseClientDisconnected().
| CallbackList<IPluginEvents::ClientFullyConnectedFn> VoltMod::SharedState::ClientFullyConnected |
Definition at line 58 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnClientFullyConnected(), VoltMod::PluginRegistry::RaiseClientFullyConnected(), and VoltMod::PluginContext::ReplayMissedEvents().
| PerSlot<std::optional<ConnectedClient> > VoltMod::SharedState::Clients |
Definition at line 51 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::DisconnectClients(), VoltMod::PluginRegistry::IsConnected(), VoltMod::PluginRegistry::RaiseClientConnected(), VoltMod::PluginRegistry::RaiseClientDisconnected(), VoltMod::PluginRegistry::RaiseClientFullyConnected(), and VoltMod::PluginContext::ReplayMissedEvents().
| CallbackList<IPluginEvents::ClientSettingsChangedFn> VoltMod::SharedState::ClientSettingsChanged |
Definition at line 59 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnClientSettingsChanged(), and VoltMod::PluginRegistry::RaiseClientSettingsChanged().
| CommandNames VoltMod::SharedState::Commands |
Definition at line 68 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::IsCommandRegistered(), VoltMod::PluginContext::RegisterCommand(), VoltMod::PluginRegistry::RegisterHostCommand(), and VoltMod::PluginContext::RemoveAll().
| CallbackList<IPluginEvents::ConsoleCommandFn> VoltMod::SharedState::ConsoleCommand |
Definition at line 60 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnConsoleCommand(), and VoltMod::PluginRegistry::RaiseConsoleCommand().
| 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.
Referenced by VoltMod::PluginRegistry::RaiseServerStartup(), and VoltMod::PluginContext::ReplayMissedEvents().
| CallbackList<IPluginEvents::FrameFn> VoltMod::SharedState::Frame |
Definition at line 53 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnFrame(), and VoltMod::PluginRegistry::RaiseFrame().
| IPluginGameData* VoltMod::SharedState::GameData = nullptr |
Definition at line 40 of file PluginContext.hpp.
Referenced by VoltMod::PluginRegistry::GameData(), and VoltMod::PluginContext::GameData().
| LanguageTable VoltMod::SharedState::Languages |
Definition at line 69 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::Languages(), VoltMod::PluginRegistry::RaiseClientConnected(), and VoltMod::PluginRegistry::RaiseClientDisconnected().
| uint64_t VoltMod::SharedState::NextOrder = 1 |
load positions keep rising, so a reloaded plugin dispatches last
Definition at line 47 of file PluginContext.hpp.
Referenced by VoltMod::PluginRegistry::AddPlugin().
| 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.
| CallbackList<IPluginEvents::PlayerCommandFn> VoltMod::SharedState::PlayerCommand |
Definition at line 63 of file PluginContext.hpp.
Referenced by VoltMod::PluginRegistry::HasCommandListeners(), VoltMod::PluginContext::OnPlayerCommand(), and VoltMod::PluginRegistry::RaisePlayerCommand().
| CallbackList<IPluginEvents::PlayerCommandFn> VoltMod::SharedState::PlayerCommandDone |
Definition at line 64 of file PluginContext.hpp.
Referenced by VoltMod::PluginRegistry::HasCommandListeners(), VoltMod::PluginContext::OnPlayerCommandDone(), and VoltMod::PluginRegistry::RaisePlayerCommandDone().
| uint64_t VoltMod::SharedState::SchemaLayoutStamp = 0 |
zero until the host has checked its own layout
Definition at line 43 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::SchemaLayoutStamp(), and VoltMod::PluginRegistry::SetSchemaLayout().
Definition at line 44 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::SchemaVerified(), and VoltMod::PluginRegistry::SetSchemaLayout().
| CallbackList<IPluginEvents::ServerStartupFn> VoltMod::SharedState::ServerStartup |
Definition at line 54 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::OnServerStartup(), VoltMod::PluginRegistry::RaiseServerStartup(), and VoltMod::PluginContext::ReplayMissedEvents().
| PublishedInterfaces VoltMod::SharedState::Services |
Definition at line 67 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::Find(), VoltMod::PluginContext::Publish(), VoltMod::PluginContext::RemoveAll(), and VoltMod::PluginContext::Unpublish().
| LoaderHandoff VoltMod::SharedState::Start |
Definition at line 39 of file PluginContext.hpp.
Referenced by VoltMod::PluginContext::BaseDir(), VoltMod::PluginContext::EngineInterface(), VoltMod::PluginContext::HookDispatcher(), and VoltMod::PluginContext::ServerInterface().