diff options
author | Kahrl <kahrl@gmx.net> | 2013-07-14 00:55:47 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-07-14 23:06:31 +0200 |
commit | 112dbba7c4d38bf780e4e2f05bdff106b52ce2f9 (patch) | |
tree | 7fbe8695a950726a2b178cd6a012430d0d42e211 /src/nodedef.h | |
parent | 9733dd5b5e5516e18775665db132b2446492716c (diff) | |
download | minetest-112dbba7c4d38bf780e4e2f05bdff106b52ce2f9.tar.gz minetest-112dbba7c4d38bf780e4e2f05bdff106b52ce2f9.tar.bz2 minetest-112dbba7c4d38bf780e4e2f05bdff106b52ce2f9.zip |
Change ContentFeatures array to a vector
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index 7505cc12d..e9ac24727 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -293,15 +293,14 @@ 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 CONTENT_IGNORE virtual content_t getId(const std::string &name) const=0; // Allows "group:name" in addition to regular node names virtual void getIds(const std::string &name, std::set<content_t> &result) const=0; - // If not found, returns the features of CONTENT_IGNORE + // If not found, returns the features of CONTENT_UNKNOWN virtual const ContentFeatures& get(const std::string &name) const=0; - // Register node definition - virtual void set(content_t c, const ContentFeatures &def)=0; // Register node definition by name (allocate an id) // If returns CONTENT_IGNORE, could not allocate id virtual content_t set(const std::string &name, |