… | |
… | |
36 | typedef uint32_t tick_t; |
36 | typedef uint32_t tick_t; |
37 | |
37 | |
38 | const int sint32_digits = 11; // number of digits an sint32 uses max. |
38 | const int sint32_digits = 11; // number of digits an sint32 uses max. |
39 | const int sint64_digits = 20; |
39 | const int sint64_digits = 20; |
40 | |
40 | |
|
|
41 | typedef char *octet_string; |
|
|
42 | typedef char *utf8_string; |
|
|
43 | typedef const char *const_octet_string; |
|
|
44 | typedef const char *const_utf8_string; |
|
|
45 | |
41 | struct client_container; |
46 | struct client_container; |
42 | struct client; |
47 | struct client; |
43 | struct player; |
48 | struct player; |
44 | struct object; |
49 | struct object; |
45 | struct maptile; |
50 | struct maptile; |
… | |
… | |
49 | struct party; |
54 | struct party; |
50 | struct treasurelist; |
55 | struct treasurelist; |
51 | struct random_map_params; |
56 | struct random_map_params; |
52 | struct faceinfo; |
57 | struct faceinfo; |
53 | struct mapxy; |
58 | struct mapxy; |
|
|
59 | |
|
|
60 | typedef object object_ornull; |
|
|
61 | typedef maptile maptile_ornull; |
54 | |
62 | |
55 | // could have used templates, but a more traditional C api |
63 | // could have used templates, but a more traditional C api |
56 | // uses more explicit typing which is ok for this purpose. |
64 | // uses more explicit typing which is ok for this purpose. |
57 | enum data_type |
65 | enum data_type |
58 | { |
66 | { |