#ifndef TRAITS_H__ #define TRAITS_H__ #include typedef int8_t sint8; typedef uint8_t uint8; typedef int16_t sint16; typedef uint16_t uint16; typedef int32_t sint32; typedef uint32_t uint32; typedef int64_t sint64; typedef uint64_t uint64; struct client_container; struct client; struct player; struct object; struct maptile; struct mapspace; struct archetype; struct region; struct party; struct treasurelist; // could have used templates, but a more traditional C api // uses more explicit typing which is ok for this purpose. enum data_type { DT_END, // no further arguments DT_AV, // perl-only av that needs to be flattened out DT_INT, DT_INT64, DT_DOUBLE, DT_STRING, // 0-terminated string DT_DATA, // string + length DT_ATTACHABLE, // will go DT_OBJECT, DT_MAP, DT_CLIENT, DT_PLAYER, DT_ARCH, DT_PARTY, DT_REGION, NUM_DATA_TYPES }; #endif