2499
|
1 #pragma once
|
|
2 #include <array>
|
|
3
|
|
4 typedef unsigned int uint;
|
|
5
|
|
6 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id
|
|
7 #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type
|
|
8 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value
|
|
9
|
|
10
|
|
11 typedef unsigned __int16 _WORD;
|
|
12 typedef unsigned __int64 _QWORD;
|
|
13
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20 /* 297 */
|
|
21 enum SoundType
|
|
22 {
|
|
23 SOUND_EndTurnBasedMode = 0xCE,
|
|
24 SOUND_StartTurnBasedMode = 0xCF,
|
|
25 SOUND_FlipOnExit = 0x4E21,
|
|
26 };
|
|
27
|
|
28
|
|
29
|
|
30 /* 362 */
|
|
31 #pragma pack(push, 1)
|
|
32 struct TravelInfo
|
|
33 {
|
|
34 char uMapID;
|
|
35 char pSchedule[7];
|
|
36 char uDaysCount;
|
|
37 char field_9[3];
|
|
38 int x;
|
|
39 int y;
|
|
40 int z;
|
|
41 int direction;
|
|
42 int field_1C;
|
|
43 };
|
|
44 #pragma pack(pop)
|
|
45
|
|
46
|
|
47
|
|
48
|
|
49
|
|
50
|
|
51
|
|
52
|
|
53
|
|
54
|
|
55
|
|
56
|
|
57 /* 374 */
|
|
58 #pragma pack(push, 1)
|
|
59 struct stat_coord
|
|
60 {
|
|
61 __int16 x;
|
|
62 __int16 y;
|
|
63 __int16 width;
|
|
64 __int16 height;
|
|
65 };
|
|
66 #pragma pack(pop)
|
|
67 extern std::array<stat_coord, 26> stat_string_coord;
|
|
68
|
|
69 /* 376 */
|
|
70 #pragma pack(push, 1)
|
|
71 struct stru336
|
|
72 {
|
|
73 int field_0;
|
|
74 int field_4;
|
|
75 int field_8;
|
|
76 int field_C;
|
|
77 int field_10;
|
|
78 int field_14;
|
|
79 __int16 field_18[480];
|
|
80 __int16 field_3D8[480];
|
|
81 };
|
|
82 #pragma pack(pop)
|
|
83
|