8#include <unordered_map>
50 std::unordered_map<std::string, std::string> Values;
51 std::optional<bool> Cursor;
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)
bool CursorChanged(int slot, bool shown)
void RemoveSlot(int slot)
@ Text
Not selectable; a caption or a summary line.
@ Failed
Anything else; the default so a value-initialized Error is never a false success.
static std::string ReadFile(const std::filesystem::path &path)