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

# User Rev Content
1 root 1.1 #ifndef TRAITS_H__
2     #define TRAITS_H__
3    
4 root 1.11 #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 root 1.8 struct client_container;
16 root 1.6 struct client;
17 root 1.4 struct player;
18 root 1.1 struct object;
19 root 1.4 struct maptile;
20 root 1.9 struct mapspace;
21 root 1.3 struct archetype;
22 root 1.1 struct region;
23     struct party;
24 root 1.4 struct treasurelist;
25 root 1.1
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 root 1.10 DT_ATTACHABLE, // will go
38 root 1.1 DT_OBJECT,
39     DT_MAP,
40 root 1.7 DT_CLIENT,
41 root 1.1 DT_PLAYER,
42     DT_ARCH,
43     DT_PARTY,
44     DT_REGION,
45    
46     NUM_DATA_TYPES
47     };
48    
49     #endif
50