1 | #ifndef TRAITS_H__ |
1 | #ifndef TRAITS_H__ |
2 | #define 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; |
3 | |
14 | |
4 | struct client_container; |
15 | struct client_container; |
5 | struct client; |
16 | struct client; |
6 | struct player; |
17 | struct player; |
7 | struct object; |
18 | struct object; |
… | |
… | |
9 | struct mapspace; |
20 | struct mapspace; |
10 | struct archetype; |
21 | struct archetype; |
11 | struct region; |
22 | struct region; |
12 | struct party; |
23 | struct party; |
13 | struct treasurelist; |
24 | struct treasurelist; |
|
|
25 | struct random_map_params; |
14 | |
26 | |
15 | // could have used templates, but a more traditional C api |
27 | // could have used templates, but a more traditional C api |
16 | // uses more explicit typing which is ok for this purpose. |
28 | // uses more explicit typing which is ok for this purpose. |
17 | enum data_type |
29 | enum data_type |
18 | { |
30 | { |