1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Derive NodeMetaRef from MetaDataRef

This commit is contained in:
rubenwardy 2017-01-31 16:43:45 +00:00
parent 13f94ecad5
commit c2e7b1f579
9 changed files with 407 additions and 232 deletions

View file

@ -44,10 +44,10 @@ public:
bool empty() const;
// Generic key/value store
std::string getString(const std::string &name, u16 recursion = 0) const;
const std::string &getString(const std::string &name, u16 recursion = 0) const;
void setString(const std::string &name, const std::string &var);
// Support variable names in values
std::string resolveString(const std::string &str, u16 recursion = 0) const;
const std::string &resolveString(const std::string &str, u16 recursion = 0) const;
const StringMap &getStrings() const
{
return m_stringvars;