diff options
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index db36021cf..bf2c7bc72 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -303,7 +303,8 @@ public: 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) + // returns false if node name not found, true otherwise + virtual bool getIds(const std::string &name, std::set<content_t> &result) const=0; virtual const ContentFeatures &get(const std::string &name) const=0; @@ -327,7 +328,7 @@ public: // 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) + virtual bool getIds(const std::string &name, std::set<content_t> &result) const=0; // If not found, returns the features of CONTENT_UNKNOWN virtual const ContentFeatures &get(const std::string &name) const=0; |