ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/traits.h
Revision: 1.12
Committed: Sat Jan 13 23:06:13 2007 UTC (17 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.11: +1 -0 lines
Log Message:
WARNING: this release is BROKEN

- rewrote map handling. map types are now completely pluggable, maybe
  *too* pluggable, as everything is a plug-in now.
- mark mandatory extensions as such.
- handle overloaded attachable objects correctly.
- many minor changes.

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.12 struct random_map_params;
26 root 1.1
27     // could have used templates, but a more traditional C api
28     // uses more explicit typing which is ok for this purpose.
29     enum data_type
30     {
31     DT_END, // no further arguments
32     DT_AV, // perl-only av that needs to be flattened out
33     DT_INT,
34     DT_INT64,
35     DT_DOUBLE,
36     DT_STRING, // 0-terminated string
37     DT_DATA, // string + length
38 root 1.10 DT_ATTACHABLE, // will go
39 root 1.1 DT_OBJECT,
40     DT_MAP,
41 root 1.7 DT_CLIENT,
42 root 1.1 DT_PLAYER,
43     DT_ARCH,
44     DT_PARTY,
45     DT_REGION,
46    
47     NUM_DATA_TYPES
48     };
49    
50     #endif
51