CustomKeyvalues

Custom keyvalues. Do not keep handles to instances of these objects.

Type: Reference type

Methods

Declaration Description
bool SetKeyvalue(const string& in szKey, const string& in szValue) Sets a custom keyvalue to the given string value.
Returns true if the key existed and was overwritten.
bool SetKeyvalue(const string& in szKey, const Vector& in vecValue) Sets a custom keyvalue to the given vector value.
Returns true if the key existed and was overwritten.
bool SetKeyvalue(const string& in szKey, float flValue) Sets a custom keyvalue to the given float value.
Returns true if the key existed and was overwritten.
bool SetKeyvalue(const string& in szKey, int iValue) Sets a custom keyvalue to the given integer value.
Returns true if the key existed and was overwritten.
void InitializeKeyvalueWithDefault(const string& in szKey) Initializes a keyvalue with the default value for its type.
bool HasKeyvalue(const string& in szKey) const Returns whether the keyvalue with the given name exists.
CustomKeyvalue GetKeyvalue(const string& in szKey) const Gets the keyvalue with the given name. Check if it exists by calling Exists.