Table of Contents

Arch Object attributes K

Object attributes beginning with the letter k .

Taken from the (unsorted) wholepage Object Fields .

List of attributes

None known yet.


Server struct obj {} object

These are not archetype attributes, but server internal variables.
Read more on the object_fields page.

Key/value fields

Those fields are not part of the Object or Stats structures, but used through the key / value mechanism.
It seems to be a fallback handler for new and unknown attributes listed in .arc archetype files.

File server/include/object.h :

/**
 * Each object (this also means archetypes!) could have a few of these
 * "dangling" from it; this could also end up containing 'parse errors'.
 *
 * key and value are shared-strings.
 *
 * Please use object_get_value(), object_set_value() from object.c rather than
 * accessing the list directly.
 * Exception is if you want to walk this list for some reason.
 */
typedef struct _key_value {
    const char *key;
    const char *value;
    struct _key_value *next;
} key_value;
 
typedef struct obj {
/* lots of lines here */
  key_value   *key_values;    /**< Fields not explicitly known by the loader. */
} object;

key_values

Type: key_value *

Meaning: