59 void Shake(
int slot,
float durationSec,
float frequency,
float amplitude);
66 void SendTextMsg(
int slot,
int destination,
const std::string& message);
67 void PostTextMsg(IRecipientFilter& filter,
int destination,
const std::string& message);
69 Interfaces& _interfaces;
71 Translations& _translations;
72 NetMessageInfo_t* _textMsgType =
nullptr;
73 NetMessageInfo_t* _shakeType =
nullptr;
Shows a center-HTML panel until stopped. render runs every refresh, so live values stay current; a pa...
Creates, fires and listens to game events.
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)
void Send(int slot, std::string_view message, MessageKind kind=MessageKind::Chat)
Messages(const Messages &)=delete
void Broadcast(std::string_view message, MessageKind kind=MessageKind::Chat)
Messages(Interfaces &interfaces, GameEvents &events, Translations &translations)
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.
std::expected< void, Error > Status
std::map< std::string, std::string > Tokens
Centralized holder for all SDK interface pointers.