Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wad Map Converter|Refactor: Simplified format recognition
The recent Doomsday API changes allow the map format recognition logic to be simplified, removing unnecessary dynamic allocations.
- Loading branch information
1 parent
af6a406
commit 6366ab3
Showing
4 changed files
with
206 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* @file maplumpinfo.h @ingroup wadmapconverter | ||
* | ||
* @authors Copyright © 2007-2012 Daniel Swanson <danij@dengine.net> | ||
* | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* <small>This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. This program is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
* Public License for more details. You should have received a copy of the GNU | ||
* General Public License along with this program; if not, write to the Free | ||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA</small> | ||
*/ | ||
|
||
#ifndef __WADMAPCONVERTER_MAPLUMPINFO_H__ | ||
#define __WADMAPCONVERTER_MAPLUMPINFO_H__ | ||
|
||
#include "doomsday.h" | ||
#include "dd_types.h" | ||
|
||
typedef enum lumptype_e { | ||
ML_INVALID = -1, | ||
FIRST_LUMP_TYPE, | ||
ML_LABEL = FIRST_LUMP_TYPE, // A separator, name, ExMx or MAPxx | ||
ML_THINGS, // Monsters, items.. | ||
ML_LINEDEFS, // LineDefs, from editing | ||
ML_SIDEDEFS, // SideDefs, from editing | ||
ML_VERTEXES, // Vertices, edited and BSP splits generated | ||
ML_SEGS, // LineSegs, from LineDefs split by BSP | ||
ML_SSECTORS, // Subsectors, list of LineSegs | ||
ML_NODES, // BSP nodes | ||
ML_SECTORS, // Sectors, from editing | ||
ML_REJECT, // LUT, sector-sector visibility | ||
ML_BLOCKMAP, // LUT, motion clipping, walls/grid element | ||
ML_BEHAVIOR, // ACS Scripts (compiled). | ||
ML_SCRIPTS, // ACS Scripts (source). | ||
ML_LIGHTS, // Surface color tints. | ||
ML_MACROS, // DOOM64 format, macro scripts. | ||
ML_LEAFS, // DOOM64 format, segs (close subsectors). | ||
ML_GLVERT, // GL vertexes | ||
ML_GLSEGS, // GL segs | ||
ML_GLSSECT, // GL subsectors | ||
ML_GLNODES, // GL nodes | ||
ML_GLPVS, // GL PVS dataset | ||
NUM_LUMP_TYPES | ||
} lumptype_t; | ||
|
||
typedef struct maplumpinfo_s { | ||
lumpnum_t lumpNum; | ||
lumptype_t lumpType; | ||
size_t length; | ||
} maplumpinfo_t; | ||
|
||
#endif /* __WADMAPCONVERTER_MAPLUMPINFO_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.