aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.h
Commit message (Expand)AuthorAge
* implemented rats in new system to verify that it worksPerttu Ahola2011-04-10
* new object systemPerttu Ahola2011-04-10
* now the server buildsPerttu Ahola2011-04-04
* Made a proper queued thread to client for handling some block mesh updates. A...Perttu Ahola2011-04-04
* Modified block mesh generation to have clearer input and output. Instead of b...Perttu Ahola2011-04-03
* commit before some more radical changesPerttu Ahola2011-04-03
* Revert mapgen to best working version (2)Perttu Ahola2011-04-03
* Mapgen is better now. Not a lot, but a bit!Perttu Ahola2011-04-02
* 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
* minecraft-style water done (but no texture animation or sound)Perttu Ahola2011-01-17
* old water removed, some fixes here and therePerttu Ahola2011-01-17
* generate-time lighting optimizationPerttu Ahola2011-01-15
* better grass generation (integration to sunlight propagation algorithms)Perttu Ahola2010-12-26
* a mutex added to TempMods which hopefully fixes rare segfaults on clientPerttu Ahola2010-12-23
* organizing stuff.Perttu Ahola2010-12-21
* Cracking blocks while diggingPerttu Ahola2010-12-21
* some tinkering with gui. removed updating of configuration file at endPerttu Ahola2010-12-20
* added dedicated server build without irrlichtPerttu Ahola2010-12-19
* day/night working client sidePerttu Ahola2010-12-19
* before daynight mesh cachePerttu Ahola2010-12-18
* before adding day/night lightingPerttu Ahola2010-12-18
* grass edges workin'Perttu Ahola2010-12-14
* in before messing with face drawing orientationPerttu Ahola2010-12-14
* commit before content-tile separationPerttu Ahola2010-12-13
* working nicelyPerttu Ahola2010-12-13
* commit before some radicallish changes to water behaviorPerttu Ahola2010-12-11
* license stuffPerttu Ahola2010-11-29
* sitä sun tätä tekeillä, toimii kivastiPerttu Ahola2010-11-29
* Working version before block send priorization updatePerttu Ahola2010-11-27
* Initial filesPerttu Ahola2010-11-27
n class="hl opt">{ StringMap::const_iterator it = m_stringvars.find(name); if (it == m_stringvars.end()) { static const std::string empty_string = std::string(""); return empty_string; } return resolveString(it->second, recursion); } bool Metadata::getStringToRef( const std::string &name, std::string &str, u16 recursion) const { StringMap::const_iterator it = m_stringvars.find(name); if (it == m_stringvars.end()) { return false; } str = resolveString(it->second, recursion); return true; } /** * Sets var to name key in the metadata storage * * @param name * @param var * @return true if key-value pair is created or changed */ bool Metadata::setString(const std::string &name, const std::string &var) { if (var.empty()) { m_stringvars.erase(name); return true; } StringMap::iterator it = m_stringvars.find(name); if (it != m_stringvars.end() && it->second == var) { return false; } m_stringvars[name] = var; m_modified = true; return true; } const std::string &Metadata::resolveString(const std::string &str, u16 recursion) const { if (recursion <= 1 && str.substr(0, 2) == "${" && str[str.length() - 1] == '}') { return getString(str.substr(2, str.length() - 3), recursion + 1); } return str; }