Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static const int MAX_TITLE_LENGTH = 128;
- static const int MAX_AUTHOR_LENGTH = 128;
- static const int MAX_DESCRIPTION_LENGTH = 256;
- static const int MAX_DESCRIPTION_LENGTH_VERSION2 = 128;
- static const int MIN_MAP_CELL_DIMENSION = 16;
- static const int MAX_MAP_CELL_DIMENSION = 1024;
- static const int MIN_MAP_CELL_HEIGHT = 0;
- static const int MAX_MAP_CELL_HEIGHT = 20;
- static const int DEFAULT_MAP_CELL_HEIGHT = 10;
- static const int MIN_MAP_FACTIONCOUNT = 1;
- static const int MAX_MAP_FACTIONCOUNT = 8;
- static const int DEFAULT_MAP_FACTIONCOUNT = 8;
- static const int DEFAULT_MAP_CELL_WIDTH = 128;
- static const int DEFAULT_MAP_CELL_LENGTH = 128;
- static const MapSurfaceType DEFAULT_MAP_CELL_SURFACE_TYPE = st_Grass;
- static const int DEFAULT_MAP_CELL_HEIGHT_FACTOR = 3;
- static const int DEFAULT_MAP_WATER_DEPTH = 4;
- static const int DEFAULT_CLIFF_HEIGHT = 0;
- static const int MAP_FORMAT_VERSION=2;
- struct MapFileHeader {
- int32 version;
- int32 maxFactions;
- int32 width;
- int32 height;
- int32 heightFactor;
- int32 waterLevel;
- int8 title[MAX_TITLE_LENGTH];
- int8 author[MAX_AUTHOR_LENGTH];
- union {
- int8 description[MAX_DESCRIPTION_LENGTH];
- #pragma pack(push, 1)
- struct {
- int8 short_desc[MAX_DESCRIPTION_LENGTH_VERSION2];
- int32 magic; // 0x01020304 for meta
- int32 cliffLevel;
- int8 meta[120];
- } version2;
- #pragma pack(pop)
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement