summaryrefslogtreecommitdiff
path: root/src/mapgen/mapgen_flat.h
Commit message (Expand)AuthorAge
* Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) (#...SmallJoker2020-01-25
* Move duplicated mapgen parameters to class MapgenBasic (#9134)Paramat2019-11-19
* Randomwalk cave liquids: Remove deprecated 'lava depth' parameter (#9105)Paramat2019-11-18
* Randomwalk caves: Add parameters for number, proportion flooded. Allow small ...Paramat2019-11-08
* Dungeons: Settable density noise, move number calculation to mapgens (#8473)Paramat2019-06-01
* mapgen: drop mapgen id from child mapgens.Loïc Blot2019-03-31
* Dungeons: Add Y limits in all mapgensparamat2018-02-20
* Mapgen folder: Update and improve copyright information of filesparamat2018-01-15
* Move files to subdirectories (#6599)Vitaliy2017-11-08
#pragma once #include "irr_v3d.h" #include <iostream> #include <vector> #include "util/string.h" class Metadata { bool m_modified = false; public: virtual ~Metadata() = default; virtual void clear(); virtual bool empty() const; bool operator==(const Metadata &other) const; inline bool operator!=(const Metadata &other) const { return !(*this == other); } // // Key-value related // size_t size() const; bool contains(const std::string &name) const; const std::string &getString(const std::string &name, u16 recursion = 0) const; bool getStringToRef(const std::string &name, std::string &str, u16 recursion = 0) const; virtual bool setString(const std::string &name, const std::string &var); inline bool removeString(const std::string &name) { return setString(name, ""); } const StringMap &getStrings() const { return m_stringvars; } // Add support for variable names in values const std::string &resolveString(const std::string &str, u16 recursion = 0) const; inline bool isModified() const { return m_modified; } inline void setModified(bool v) { m_modified = v; } protected: StringMap m_stringvars; };