Skip to content

Commit

Permalink
Wad Map Converter: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 28, 2012
1 parent 87f4ca5 commit d885b64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 6 additions & 0 deletions doomsday/plugins/wadmapconverter/include/id1map.h
Expand Up @@ -30,6 +30,12 @@
#include <vector>
#include <list>

/// Material dictionary groups.
typedef enum materialdictgroup_e {
MG_PLANE = 0,
MG_WALL
} MaterialDictGroup;

typedef std::vector<mline_t> Lines;
typedef std::vector<mside_t> Sides;
typedef std::vector<msector_t> Sectors;
Expand Down
22 changes: 8 additions & 14 deletions doomsday/plugins/wadmapconverter/include/id1map_datatypes.h
Expand Up @@ -25,7 +25,10 @@
#include "dd_types.h"
#include "id1map_util.h"

/// Sizes of the map data structures in the arrived map formats (in int8_ts).
/// Type used to identify references to materials in the material dictionary.
typedef StringPoolId MaterialDictId;

/// Sizes of the map data structures in the arrived map formats (in bytes).
#define SIZEOF_64VERTEX (4 * 2)
#define SIZEOF_VERTEX (2 * 2)
#define SIZEOF_64THING (2 * 7)
Expand All @@ -40,19 +43,6 @@
#define SIZEOF_SECTOR (2 * 5 + 8 * 2)
#define SIZEOF_LIGHT (1 * 6)

/// Type used to identify references to materials in the material dictionary.
typedef StringPoolId MaterialDictId;

/// Material dictionary groups.
typedef enum materialdictgroup_e {
MG_PLANE = 0,
MG_WALL
} MaterialDictGroup;

/// Line sides.
#define RIGHT 0
#define LEFT 1

typedef struct mside_s {
int16_t offset[2];
MaterialDictId topMaterial;
Expand All @@ -61,6 +51,10 @@ typedef struct mside_s {
uint sector;
} mside_t;

/// Line sides.
#define RIGHT 0
#define LEFT 1

/**
* @defgroup lineAnalysisFlags Line Analysis flags
*/
Expand Down

0 comments on commit d885b64

Please sign in to comment.