ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/traits.h
Revision: 1.11
Committed: Sat Dec 30 10:16:10 2006 UTC (17 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.10: +11 -0 lines
Log Message:
preliminary snapshot check-in, DO NOT USE IN PRODUCTION SYSTEMS
See the Changes file for details

File Contents

# Content
1 #ifndef TRAITS_H__
2 #define TRAITS_H__
3
4 #include <inttypes.h>
5
6 typedef int8_t sint8;
7 typedef uint8_t uint8;
8 typedef int16_t sint16;
9 typedef uint16_t uint16;
10 typedef int32_t sint32;
11 typedef uint32_t uint32;
12 typedef int64_t sint64;
13 typedef uint64_t uint64;
14
15 struct client_container;
16 struct client;
17 struct player;
18 struct object;
19 struct maptile;
20 struct mapspace;
21 struct archetype;
22 struct region;
23 struct party;
24 struct treasurelist;
25
26 // could have used templates, but a more traditional C api
27 // uses more explicit typing which is ok for this purpose.
28 enum data_type
29 {
30 DT_END, // no further arguments
31 DT_AV, // perl-only av that needs to be flattened out
32 DT_INT,
33 DT_INT64,
34 DT_DOUBLE,
35 DT_STRING, // 0-terminated string
36 DT_DATA, // string + length
37 DT_ATTACHABLE, // will go
38 DT_OBJECT,
39 DT_MAP,
40 DT_CLIENT,
41 DT_PLAYER,
42 DT_ARCH,
43 DT_PARTY,
44 DT_REGION,
45
46 NUM_DATA_TYPES
47 };
48
49 #endif
50