IConVar
Interfacepublic interface IConVarProperties
The default value of the convar in string. System.ArgumentException?text=Thrown+when+the+string+value+can%27t+be+parsed.
string DefaultValueAsString { get; set; }Whether the convar has a default value.
bool HasDefaultValue { get; }The max value of the convar in string. System.ArgumentException?text=Thrown+when+the+string+value+can%27t+be+parsed.
string MaxValueAsString { get; set; }The min value of the convar in string. System.ArgumentException?text=Thrown+when+the+string+value+can%27t+be+parsed.
string MinValueAsString { get; set; }The string value of the convar. When setting, if the convar can be replicated, it will automatically replicate to all clients. Also, setting value with this method will internally put it into a set queue, Which means that for some special case ( e.g. setting sv_enablebunnyhopping inside a hook ) it won't work, in such cases you should use the SetInternal method instead. System.ArgumentException?text=Thrown+when+the+string+value+can%27t+be+parsed.
string ValueAsString { get; set; }Methods
Query the value of the convar from specified client.
void QueryClient(int clientId, Action<string> callback)Replicate the value of the convar to specified client.
void ReplicateToClientAsString(int clientId, string value)Internally set the value of the convar. Won't replicate the change to clients.
void SetInternalAsString(string value)- valuestringThe value to set.
Try to get the default value of the convar.
bool TryGetDefaultValueAsString(out string defaultValue)- defaultValuestringThe default value of the convar.
Try to get the max value of the convar.
bool TryGetMaxValueAsString(out string maxValue)- maxValuestringThe max value of the convar.