mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
common: bspfile: add basic BSPX definitions
This commit is contained in:
@@ -37,6 +37,8 @@ BRUSH MODELS
|
|||||||
// ver. 2 was occupied by old vesrions of P2:savior
|
// ver. 2 was occupied by old vesrions of P2:savior
|
||||||
// ver. 3 was occupied by experimental versions of P2:savior change fmt
|
// ver. 3 was occupied by experimental versions of P2:savior change fmt
|
||||||
|
|
||||||
|
#define IDBSPXHEADER (( 'B' << 0 ) | ( 'S' << 8 ) | ( 'P' << 16 ) | ( 'X' << 24 ))
|
||||||
|
|
||||||
#define DELUXEMAP_VERSION 1
|
#define DELUXEMAP_VERSION 1
|
||||||
#define IDDELUXEMAPHEADER (( 'Q' << 0 ) | ('L' << 8 ) | ( 'I' << 16 ) | ( 'T' << 24 ))
|
#define IDDELUXEMAPHEADER (( 'Q' << 0 ) | ('L' << 8 ) | ( 'I' << 16 ) | ( 'T' << 24 ))
|
||||||
|
|
||||||
@@ -166,6 +168,20 @@ typedef struct
|
|||||||
dlump_t lumps[EXTRA_LUMPS];
|
dlump_t lumps[EXTRA_LUMPS];
|
||||||
} dextrahdr_t;
|
} dextrahdr_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
char lumpname[24]; // up to 23 chars, zero-padded
|
||||||
|
int32_t fileofs;
|
||||||
|
int32_t filelen;
|
||||||
|
} dbspx_lump_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
int32_t id; // must be little endian BSPX
|
||||||
|
int32_t numlumps;
|
||||||
|
dbspx_lump_t lumps[];
|
||||||
|
} dbspx_hdr_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
vec3_t mins;
|
vec3_t mins;
|
||||||
|
|||||||
Reference in New Issue
Block a user