101 std::unique_ptr<PendingConVarQueries> _pending;
Asks a connected client what one of its own convars is set to.
ClientConVars(const ClientConVars &)=delete
bool Query(int slot, std::string_view cvarName, QueryCallback callback)
std::function< void(int slot, ClientConVarStatus status, std::string_view name, std::string_view value)> QueryCallback
size_t PendingCount(int slot) const
ClientConVars & operator=(const ClientConVars &)=delete
"The occupant of this slot changed" - raised by PlayerManager, consumed below it.
Owns one registration and releases it on destruction.
@ NotFound
The named thing does not exist (no such player, convar, row).
static std::string ReadFile(const std::filesystem::path &path)
ClientConVarStatus
How the client answered a convar query (CCLCMsg_RespondCvarValue::status_code).
@ Protected
The convar is marked protected; the client withholds its value.
@ Answered
The client reported the convar's current value.
@ NotAConVar
The name exists on the client but is a command, not a convar.
std::expected< void, Error > Status
@ Send
point the client at AddonDecision::Id and wait for its reconnect
One failure: a code to branch on, text for the log, and an optional translation key.
static Error NotReady(std::string detail)
Centralized holder for all HL2SDK interface pointers.