Skip to content

KeyValueBuffer

GeckoN edited this page Mar 29, 2017 · 5 revisions

KeyValueBuffer is a class that contains key value pairs. The game uses 2 types of keyvalue buffers: an info string and physics string.

The info string buffer contains settings sent from the client to the server, such as their current player model, name and more.

The physics string buffer contains settings that the physics code accesses. It contains settings such as whether the long jump module is available.

You should not maintain a handle to KeyValueBuffer instances. When you are done using it, make sure no references exist remain.

The HTML documentation can be found here.

Methods

Method Description
edict_t@ GetClient() const Gets the client that this buffer belongs to.
string GetValue(const string& in szKey) const Gets a key value.
void SetValue(const string& in szKey, const string& in szValue) const Sets a key value.
void RemoveValue(const string& in szKey) Removes a key value. If this is a physics key buffer, this will set the key to an empty string instead.
Clone this wiki locally