diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 12:30:11 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 12:30:11 +0300 |
commit | 280e1a2512c71ef0d38643d8b245c40b285879ae (patch) | |
tree | 93b8517ea206e8ceaeeb57e7aca964fc24b35a99 /src/nodedef.h | |
parent | 1518b8f7538aad3b64a2a8a4ddf285fd22469b94 (diff) | |
download | minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.tar.gz minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.tar.bz2 minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.zip |
Allow group:groupname in ABM definition and implement minetest.hash_node_position()
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index a7ffa5a2e..753bea0ed 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -238,6 +238,9 @@ public: virtual const ContentFeatures& get(const MapNode &n) const=0; virtual bool getId(const std::string &name, content_t &result) const=0; 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; virtual const ContentFeatures& get(const std::string &name) const=0; virtual void serialize(std::ostream &os)=0; @@ -254,6 +257,9 @@ public: virtual const ContentFeatures& get(const MapNode &n) const=0; virtual bool getId(const std::string &name, content_t &result) const=0; 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 virtual const ContentFeatures& get(const std::string &name) const=0; |