21#define MAPSECTOR_SERVER 0
22#define MAPSECTOR_CLIENT 1
66 std::unordered_map<s16, std::unique_ptr<MapBlock>>
m_blocks;
Definition mapsector.h:25
v2s16 m_pos
Definition mapsector.h:70
std::unique_ptr< MapBlock > detachBlock(MapBlock *block)
Definition mapsector.cpp:99
void insertBlock(std::unique_ptr< MapBlock > block)
Definition mapsector.cpp:77
MapBlock * getBlockNoCreateNoEx(s16 y)
Definition mapsector.cpp:50
const auto & getBlocks()=delete
MapBlock * getBlockBuffered(s16 y)
Definition mapsector.cpp:31
s16 m_block_cache_y
Definition mapsector.h:77
Map * m_parent
Definition mapsector.h:68
std::unordered_map< s16, std::unique_ptr< MapBlock > > m_blocks
Definition mapsector.h:66
const auto & getBlocks() const
Definition mapsector.h:57
int size() const
Definition mapsector.h:62
MapSector(Map *parent, v2s16 pos, IGameDef *gamedef)
Definition mapsector.cpp:10
IGameDef * m_gamedef
Definition mapsector.h:72
MapBlock * createBlankBlock(s16 y)
Definition mapsector.cpp:67
bool empty() const
Definition mapsector.h:60
MapBlock * m_block_cache
Definition mapsector.h:76
virtual ~MapSector()
Definition mapsector.cpp:17
void deleteBlocks()
Definition mapsector.cpp:22
v2s16 getPos() const
Definition mapsector.h:33
void deleteBlock(MapBlock *block)
Definition mapsector.cpp:93
std::unique_ptr< MapBlock > createBlankBlockNoInsert(s16 y)
Definition mapsector.cpp:55
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
std::vector< MapBlock * > MapBlockVect
Definition mapblock.h:554