8#include <unordered_map>
30 bool Changed(
int slot,
WriteKind kind, std::string_view elementId, std::string_view name, std::string_view value);
33 bool ClassChanged(
int slot, std::string_view elementId, std::string_view className,
bool on);
36 bool IsClassOn(
int slot, std::string_view elementId, std::string_view className);
59 std::unordered_map<std::string, std::string> Values;
60 std::optional<bool> Cursor;
68 const std::string& BuildKey(
WriteKind kind, std::string_view elementId, std::string_view name);
Per-player-slot value store that never leaks state across occupants.
What each player, or everyone, was last sent on one screen, so an unchanged write is skipped.
void Invalidate(int slot)
bool IsFirstFailure(int slot)
bool Changed(int slot, WriteKind kind, std::string_view elementId, std::string_view name, std::string_view value)
void ResetCursor(int slot)
bool CursorChanged(int slot, bool shown)
void RemoveSlot(int slot)
bool IsClassOn(int slot, std::string_view elementId, std::string_view className)
bool ClassChanged(int slot, std::string_view elementId, std::string_view className, bool on)
static std::string_view Text(const char *text)