123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- #ifndef __DOOMDATA__
- #define __DOOMDATA__
- #include "config.h"
- #include "doomtype.h"
- enum {
- ML_LABEL,
- ML_THINGS,
- ML_LINEDEFS,
- ML_SIDEDEFS,
- ML_VERTEXES,
- ML_SEGS,
- ML_SSECTORS,
- ML_NODES,
- ML_SECTORS,
- ML_REJECT,
- ML_BLOCKMAP
- };
- #ifdef _MSC_VER
- #pragma pack(push)
- #pragma pack(1)
- #endif
- typedef struct {
- short x,y;
- } PACKEDATTR mapvertex_t;
- typedef struct {
- short textureoffset;
- short rowoffset;
- char toptexture[8];
- char bottomtexture[8];
- char midtexture[8];
- short sector;
- } PACKEDATTR mapsidedef_t;
- typedef struct {
- unsigned short v1;
- unsigned short v2;
- unsigned short flags;
- short special;
- short tag;
-
-
-
- unsigned short sidenum[2];
- } PACKEDATTR maplinedef_t;
- #define NO_INDEX ((unsigned short)-1)
- #define ML_BLOCKING 1
- #define ML_BLOCKMONSTERS 2
- #define ML_TWOSIDED 4
- #define ML_DONTPEGTOP 8
- #define ML_DONTPEGBOTTOM 16
- #define ML_SECRET 32
- #define ML_SOUNDBLOCK 64
- #define ML_DONTDRAW 128
- #define ML_MAPPED 256
- #define ML_PASSUSE 512
- typedef struct {
- short floorheight;
- short ceilingheight;
- char floorpic[8];
- char ceilingpic[8];
- short lightlevel;
- short special;
- short tag;
- } PACKEDATTR mapsector_t;
- typedef struct {
- unsigned short numsegs;
- unsigned short firstseg;
- } PACKEDATTR mapsubsector_t;
- typedef struct {
- unsigned short v1;
- unsigned short v2;
- short angle;
- unsigned short linedef;
- short side;
- short offset;
- } PACKEDATTR mapseg_t;
- #define NF_SUBSECTOR 0x8000
- typedef struct {
- short x;
- short y;
- short dx;
- short dy;
-
- short bbox[2][4];
-
- unsigned short children[2];
- } PACKEDATTR mapnode_t;
- typedef struct {
- short x;
- short y;
- short angle;
- short type;
- short options;
- } PACKEDATTR mapthing_t;
- #ifdef _MSC_VER
- #pragma pack(pop)
- #endif
- #endif
|