diff options
author | rubenwardy <rubenwardy@gmail.com> | 2017-01-31 14:45:28 +0000 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2017-02-04 22:07:55 +0000 |
commit | bbdd869d72d7b5aae2994d287f69e1c1d866f4e2 (patch) | |
tree | 267b0ebc5c8970b2b7cae16a6242062a11f752c6 /src/nodemetadata.h | |
parent | de664b1c6d4b2bca47f918a6a865a920434bf664 (diff) | |
download | minetest-bbdd869d72d7b5aae2994d287f69e1c1d866f4e2.tar.gz minetest-bbdd869d72d7b5aae2994d287f69e1c1d866f4e2.tar.bz2 minetest-bbdd869d72d7b5aae2994d287f69e1c1d866f4e2.zip |
Derive NodeMetadata from Metadata
Diffstat (limited to 'src/nodemetadata.h')
-rw-r--r-- | src/nodemetadata.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/nodemetadata.h b/src/nodemetadata.h index da1bf595d..f46c0fe91 100644 --- a/src/nodemetadata.h +++ b/src/nodemetadata.h @@ -20,10 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef NODEMETADATA_HEADER #define NODEMETADATA_HEADER -#include "irr_v3d.h" -#include <iostream> -#include <vector> -#include "util/string.h" +#include "metadata.h" /* NodeMetadata stores arbitary amounts of data for special blocks. @@ -37,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., class Inventory; class IItemDefManager; -class NodeMetadata +class NodeMetadata : public Metadata { public: NodeMetadata(IItemDefManager *item_def_mgr); @@ -49,16 +46,6 @@ public: void clear(); bool empty() const; - // Generic key/value store - std::string getString(const std::string &name, unsigned short 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, unsigned short recursion = 0) const; - StringMap getStrings() const - { - return m_stringvars; - } - // The inventory Inventory *getInventory() { @@ -66,7 +53,6 @@ public: } private: - StringMap m_stringvars; Inventory *m_inventory; }; @@ -101,4 +87,3 @@ private: }; #endif - |