/* 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, } object_type; extern struct attrib_type at_object; extern struct attrib * object_create(const char * name, object_type type, variant value); extern void object_get(const struct attrib * a, object_type * type, variant * value); extern void object_set(struct attrib * a, object_type type, variant value); extern const char * object_name(const struct attrib * a); #ifdef __cplusplus } #endif #endif