aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-16 14:36:33 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:47 +0200
commit7a29b14a20b16b97fd0d97d9f305fe0d53c160bf (patch)
tree95076f5b5c1718b03584225ee67e4d0630c27a99 /src/nodedef.h
parentdf8346ef4d70ba7c717c4c7b9c783df876378ca8 (diff)
downloadminetest-7a29b14a20b16b97fd0d97d9f305fe0d53c160bf.tar.gz
minetest-7a29b14a20b16b97fd0d97d9f305fe0d53c160bf.tar.bz2
minetest-7a29b14a20b16b97fd0d97d9f305fe0d53c160bf.zip
Improved MaterialItem (stores nodename)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 055ed7a4b..54722f5af 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -254,6 +254,7 @@ public:
virtual const ContentFeatures& get(content_t c) const=0;
virtual const ContentFeatures& get(const MapNode &n) const=0;
virtual bool getId(const std::string &name, content_t &result) const=0;
+ virtual const ContentFeatures& get(const std::string &name) const=0;
virtual void serialize(std::ostream &os)=0;
};
@@ -268,6 +269,8 @@ public:
virtual const ContentFeatures& get(content_t c) const=0;
virtual const ContentFeatures& get(const MapNode &n) const=0;
virtual bool getId(const std::string &name, content_t &result) const=0;
+ // If not found, returns the features of CONTENT_IGNORE
+ virtual const ContentFeatures& get(const std::string &name) const=0;
// Register node definition
virtual void set(content_t c, const ContentFeatures &def)=0;