39 : PluginName(host.
Name()),
40 Version(host.Version()),
45 Screens(Entities, Unsafe.Bindings, Slots,
Visibility,
47 AddonManager(host.Addons()),
48 Exchange(host.Services()),
49 Commands(Policy, Translations,
Players, Entities, Messages, host)
99void Runtime::CheckServices()
116void Runtime::AddStatusSections()
122 std::map<std::string, std::string>
failed;
131 const auto uptime = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() -
start);
Asks a connected client what one of its own convars is set to.
Every entity's damage, from CBaseEntity::TakeDamageOld, and a way to deal it.
Creates, fires and listens to game events.
static std::string Write(const T &value)
Serialize value as compact JSON.
bool Optional(std::string_view name, Status result)
bool Required(std::string_view name, Status result)
Send chat, center print, center HTML, and alert messages.
Each player's command from CCSPlayer_MovementServices::RunCommand.
std::function< bool(int64_t steamId, std::string_view permission)> HasPermission
MultiAddonManager AddonManager
const std::string PluginName
VoltMod::Translations Translations
VoltMod::LoadReport LoadReport
VoltMod::MenuFreeze Freeze
VoltMod::Scheduler Scheduler
std::string PluginFile(std::string_view relative) const
const std::string Version
VoltMod::ScreenManager Screens
Runtime(IPluginContext &host, UnsafeServices &unsafe, PlayerLanguages &languages)
Subscription UsePanorama(PanoramaMenuLayout &layout)
VoltMod::ChatInput ChatInput
One-shot delays and repeating timers, run on the game thread.
Create Screen objects and report their button presses.
void RegisterSection(std::string name, Provider provider)
Add a section, replacing any existing one with the same name.
Owns one registration and releases it on destruction.
Report player pawn moves through CBaseEntity::Teleport.
Outgoing TextMsg user messages, the game's own lines included.
runtime.Trace: line and box traces against the physics world. Game-thread only.
Localization system. Loads one JSON file per language; nested objects flatten into dotted keys (categ...
Which clients receive which entities, filtered after CheckTransmit.
Subscription HostSubscription(IPluginEvents &events, uint64_t token)
void Warn(std::format_string< Args... > fmt, Args &&... args)
static Subscription ListenForPresses(IPluginEvents &events, ScreenManager &screens)
static Subscription ListenForCommands(IPluginEvents &events, Movement &movement)
static std::string ReadFile(const std::filesystem::path &path)
std::string PluginFile(std::string_view plugin, std::string_view relative)
"addons/voltmod/plugins/<plugin>/<relative>".
static constexpr std::string_view InterfaceName
Opt-in access to raw engine interfaces and typed gamedata bindings.