aboutsummaryrefslogtreecommitdiff
path: root/po/eo
Commit message (Expand)AuthorAge
* Add translation of LANG_CODE in all languagesEkdohibs2017-08-24
* Fix updatepo.sh and run it.Ekdohibs2017-08-24
* Run updatepo.shLoic Blot2017-05-21
* Translated using Weblate (Esperanto)yellowcrash102017-05-21
* Translated using Weblate (Esperanto)yellowcrash102017-05-04
* Footsteps without view bobbing (#5645)Louis Pearson2017-04-25
* Run updatepo.shest312016-12-14
* Run updatepo.shest312016-08-30
* Run updatepo.shest312016-07-12
* Translated using Weblate (Esperanto)Tim2016-07-12
* Run updatepo.shest312016-05-05
* Update po files, minetest.conf.example and settings_translation_file.cppest312016-02-27
* Run util/updatepo.shest312015-11-08
* Run updatepo.shest312015-10-24
* Translated using Weblate (Esperanto)Tim2015-10-05
* Run updatepo.shest312015-09-12
* Translated using Weblate (Esperanto)Tim2015-09-12
* Translated using Weblate (Esperanto)Tim2015-09-12
* Translated using Weblate (Esperanto)Tim2015-09-12
* Translated using Weblate (Esperanto)Tim2015-09-12
ss="hl opt">; StaticObject(): type(0), pos(0,0,0) { } StaticObject(u8 type_, v3f pos_, const std::string &data_): type(type_), pos(pos_), data(data_) { } void serialize(std::ostream &os); void deSerialize(std::istream &is, u8 version); }; class StaticObjectList { public: /* Inserts an object to the container. Id must be unique (active) or 0 (stored). */ void insert(u16 id, StaticObject obj) { if(id == 0) { m_stored.push_back(obj); } else { if(m_active.find(id) != m_active.end()) { dstream<<"ERROR: StaticObjectList::insert(): " <<"id already exists"<<std::endl; FATAL_ERROR("StaticObjectList::insert()"); } m_active[id] = obj; } } void remove(u16 id) { assert(id != 0); // Pre-condition if(m_active.find(id) == m_active.end()) { warningstream<<"StaticObjectList::remove(): id="<<id <<" not found"<<std::endl; return; } m_active.erase(id); } void serialize(std::ostream &os); void deSerialize(std::istream &is); /* NOTE: When an object is transformed to active, it is removed from m_stored and inserted to m_active. The caller directly manipulates these containers. */ std::vector<StaticObject> m_stored; std::map<u16, StaticObject> m_active; private: }; #endif