69 Interfaces& _interfaces;
71 Translations& _translations;
Re-sends a center-HTML panel until stopped, since CS2 drops center HTML on death, a team switch and H...
Creates, fires and listens to game events.
Send chat, center print, center HTML, and alert messages.
void BroadcastKey(std::string_view key, const Tokens &tokens={}, MessageKind kind=MessageKind::Chat)
void ClearCenterHtml(int slot)
void SendCenterHtml(int slot, const std::string &html)
Messages(const Messages &)=delete
void Broadcast(std::string_view message, MessageKind kind=MessageKind::Chat)
void SendKey(int slot, std::string_view key, const Tokens &tokens={}, MessageKind kind=MessageKind::Chat)
void Shake(int slot, float durationSec, float frequency, float amplitude)
Messages & operator=(const Messages &)=delete
Localization system. Loads one JSON file per language; nested objects flatten into dotted keys (categ...
@ Center
Plain center-screen print.
@ Chat
Chat box line (color escapes honored).
@ Alert
Top-center alert bar.
static std::string ReadFile(const std::filesystem::path &path)
std::expected< void, Error > Status
std::map< std::string, std::string > Tokens
@ Send
point the client at AddonDecision::Id and wait for its reconnect
Centralized holder for all HL2SDK interface pointers.