mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Update solidx size, shift, cellmask to 8, 3, 7 * Introduce realm descriptor versioning * Add core-changes * Update breaking-changes.txt
28 lines
452 B
C++
28 lines
452 B
C++
/** @file
|
|
*
|
|
* @par History
|
|
*
|
|
* @note a map block is a 64x64 cell area of a map.
|
|
* @note Since a mapcell is 2 bytes, each map block is 8K.
|
|
*/
|
|
|
|
|
|
#ifndef PLIB_MAPBLOCK_H
|
|
#define PLIB_MAPBLOCK_H
|
|
|
|
#include "mapcell.h"
|
|
namespace Pol
|
|
{
|
|
namespace Plib
|
|
{
|
|
const unsigned MAPBLOCK_CHUNK = 8;
|
|
const unsigned MAPBLOCK_SHIFT = 3;
|
|
const unsigned MAPBLOCK_CELLMASK = 7;
|
|
|
|
struct MAPBLOCK
|
|
{
|
|
MAPCELL cell[MAPBLOCK_CHUNK][MAPBLOCK_CHUNK]; // [x][y]
|
|
};
|
|
}
|
|
}
|
|
#endif
|