aboutsummaryrefslogtreecommitdiff
path: root/src/mapsector.cpp
Commit message (Expand)AuthorAge
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* Fix client.h getting included on the server buildPerttu Ahola2012-03-31
* GameDef compilesPerttu Ahola2011-11-29
* more reorganizing of map codePerttu Ahola2011-06-26
* cleaned map stuffPerttu Ahola2011-06-26
* New map generator added (and SQLite, messed up the commits at that time...) (...Perttu Ahola2011-06-25
* mapgen stuffPerttu Ahola2011-02-05
* partly working chunk-based map generator (doesn't save properly, spawn is pre...Perttu Ahola2011-02-01
* map generation framework under development... not quite operational at this p...Perttu Ahola2011-01-30
* added dedicated server build without irrlichtPerttu Ahola2010-12-19
* license stuffPerttu Ahola2010-11-29
* Initial filesPerttu Ahola2010-11-27
span class="hl kwc">class MapChunk { public: MapChunk(): m_generation_level(GENERATED_NOT), m_modified(true) { } /* Generation level. Possible values: GENERATED_FULLY = 0 = fully generated GENERATED_PARTLY = partly generated GENERATED_NOT = not generated */ u16 getGenLevel(){ return m_generation_level; } void setGenLevel(u16 lev){ m_generation_level = lev; } void serialize(std::ostream &os, u8 version) { os.write((char*)&m_generation_level, 1); } void deSerialize(std::istream &is, u8 version) { is.read((char*)&m_generation_level, 1); } bool isModified(){ return m_modified; } void setModified(bool modified){ m_modified = modified; } private: u8 m_generation_level; bool m_modified; }; #endif #endif