arch:arch_attributes:k
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arch:arch_attributes:k [2018/04/11 14:10] – created karl | arch:arch_attributes:k [2025/04/18 13:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Taken from the (unsorted) wholepage [[: | Taken from the (unsorted) wholepage [[: | ||
- | ===== List == | + | ===== List of attributes |
+ | None known yet. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Server struct obj {} object == | ||
+ | These are not archetype attributes, but server internal variables. \\ | ||
+ | Read more on the [[: | ||
+ | |||
===== Key/value fields ===== | ===== Key/value fields ===== | ||
- | Those fields are not part of the '' | + | Those fields are not part of the Object |
+ | It seems to be a fallback handler for new and unknown attributes listed in .arc archetype files. | ||
+ | |||
+ | File [[: | ||
+ | <code c> | ||
+ | /** | ||
+ | * Each object (this also means archetypes!) could have a few of these | ||
+ | * " | ||
+ | * | ||
+ | * key and value are shared-strings. | ||
+ | * | ||
+ | * Please use object_get_value(), | ||
+ | * 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 | ||
+ | } object; | ||
+ | </ | ||
==== key_values ==== | ==== key_values ==== |
arch/arch_attributes/k.1523473853.txt.gz · Last modified: (external edit)