55 std::function<void(
int slot,
ClientConVarStatus status, std::string_view name, std::string_view value)>;
90 void OnRespondCvarValue(
const CServerSideClientBase& client,
const CCLCMsg_RespondCvarValue& msg);
93 bool Send(
int slot, std::string_view cvarName,
int cookie);
98 std::unique_ptr<PendingConVarQueries> _pending;
99 NetMessageInfo_t* _getCvarValue =
nullptr;
std::function< void(int slot, ClientConVarStatus status, std::string_view name, std::string_view value)> QueryCallback
ClientConVars(const ClientConVars &)=delete
bool Query(int slot, std::string_view cvarName, QueryCallback callback)
ClientConVars(Interfaces &interfaces, const Bindings &bindings, SlotEvents &slots)
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.
std::expected< void, Error > Status
@ NotFound
The named thing does not exist (no such player, convar, row).
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.
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 SDK interface pointers.