-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwadstructs.h
65 lines (57 loc) · 1.15 KB
/
wadstructs.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
#ifndef __WADSTRUCTS_H_
#define __WADSTRUCTS_H_
typedef struct
{
char wad_type[4]; /* should be "PWAD" */
long num_lumps;
long dir_start;
} __attribute__((packed)) Wad_Header;
typedef struct
{
long lump_start;
long lump_size;
char lump_name[8];
} __attribute__((packed)) Lump_Entry;
typedef struct
{
short int x;
short int y;
short int angle;
short int type;
short int options;
} __attribute__((packed)) Thing;
typedef struct
{
short int from_vertex;
short int to_vertex;
short int flags;
short int type;
short int tag;
short int right_sidedef_idx;
short int left_sidedef_idx; /* -1 if no 2nd sidedef */
} __attribute__((packed)) Linedef;
typedef struct
{
short int x_texture_off;
short int y_texture_off;
char upper_texture[8];
char lower_texture[8];
char normal_texture[8];
short int sector;
} __attribute__((packed)) Sidedef;
typedef struct
{
short int x;
short int y;
} __attribute__((packed)) Vertex;
typedef struct
{
short int floor_height;
short int ceiling_height;
char floor_texture[8];
char ceiling_texture[8];
short int brightness;
short int special;
short int tag;
} __attribute__((packed)) Sector;
#endif __WADSTRUCTS_H_