-
Notifications
You must be signed in to change notification settings - Fork 0
/
pop.h
87 lines (65 loc) · 1.63 KB
/
pop.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
made by ALACN
http://www.strategyplanet.com/populous
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
typedef signed char SBYTE;
typedef unsigned char UBYTE;
typedef signed short SWORD;
typedef unsigned short UWORD;
typedef signed long SLONG;
typedef unsigned long ULONG;
#pragma pack(push, 1)
struct Points3DWord
{
SWORD WX;
SWORD WY;
SWORD WZ;
};
struct TMapSrcCoords // 8 bytes
{
SLONG X;
SLONG Y;
};
struct ObjEditFacesInfo // 60 bytes
{
SWORD CurrNormalIdx;
SWORD TextureIdx;
UWORD Flags;
UBYTE NumPoints;
SBYTE PolyDrawMode;
TMapSrcCoords TmapSrcCoords[4]; // 32 bytes
SWORD PointOffsets[4]; // 8 bytes
UWORD BaseNormalIdxs[4]; // 8 bytes
UBYTE UVCursorInfo;
UBYTE General;
SBYTE BucketAdj;
UBYTE BldgConstructFlags;
};
struct ObjEditObjectsInfo // 54 bytes
{
UWORD Flags;
SWORD NumFaces;
SWORD NumPoints;
SBYTE BucketOffset;
SBYTE SeqNum;
SLONG EditorScale;
SLONG Scale;
//struct ObjEditFacesInfo *StartFace;
//struct ObjEditFacesInfo *EndFace;
DWORD StartFace;
DWORD EndFace;
//struct Points3DWord *StartPoint;
//struct Points3DWord *EndPoint;
DWORD StartPoint;
DWORD EndPoint;
Points3DWord ScaledMins;
Points3DWord ScaledMaxs;
//SBYTE ShapeIdxs[BLDG_MARKER_NUM_ORIENTS];
SBYTE ShapeIdxs[4];
struct Points3DWord ScaledOffsets;
};
#pragma pack(pop)