/* vi: set ts=2: +-------------------+ Christian Schlittchen | | Enno Rehling | Eressea PBEM host | Katja Zedel | (c) 1998 - 2003 | Henning Peters | | Ingo Wilken +-------------------+ Stefan Reich This program may not be used, modified or distributed without prior permission by the authors of Eressea. */ #ifndef H_ATTRIBUTE_OBJECT #define H_ATTRIBUTE_OBJECT #include #ifdef __cplusplus extern "C" { #endif typedef enum { TNONE = 0, TINTEGER = 1, TREAL = 2, TSTRING = 3, TUNIT = 10, TFACTION = 11, TREGION = 12, TBUILDING = 13, TSHIP = 14 } dict_type; extern struct attrib_type at_dict; extern struct attrib *dict_create(const char *name, dict_type type, variant value); extern void dict_get(const struct attrib *a, dict_type * type, variant * value); extern void dict_set(struct attrib *a, dict_type type, variant value); extern const char *dict_name(const struct attrib *a); #ifdef __cplusplus } #endif #endif