-void MapSector::getBlocks(std::list<MapBlock*> &dest)
-{
- for(std::map<s16, MapBlock*>::iterator bi = m_blocks.begin();
- bi != m_blocks.end(); ++bi)
- {
- dest.push_back(bi->second);
- }
-}
-
-/*
- ServerMapSector
-*/
-
-ServerMapSector::ServerMapSector(Map *parent, v2s16 pos, IGameDef *gamedef):
- MapSector(parent, pos, gamedef)
-{
-}
-
-ServerMapSector::~ServerMapSector()
-{
-}
-
-void ServerMapSector::serialize(std::ostream &os, u8 version)
-{
- if(!ser_ver_supported(version))
- throw VersionMismatchException("ERROR: MapSector format not supported");
-
- /*
- [0] u8 serialization version
- + heightmap data
- */
-
- // Server has both of these, no need to support not having them.
- //assert(m_objects != NULL);
-
- // Write version
- os.write((char*)&version, 1);
-
- /*
- Add stuff here, if needed
- */
-
-}
-
-ServerMapSector* ServerMapSector::deSerialize(
- std::istream &is,
- Map *parent,
- v2s16 p2d,
- std::map<v2s16, MapSector*> & sectors,
- IGameDef *gamedef
- )