diff options
| author | Perttu Ahola <celeron55@gmail.com> | 2011-11-19 18:48:09 +0200 |
|---|---|---|
| committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:49 +0200 |
| commit | 901d98b687d9681b83aface7e6697d6937023024 (patch) | |
| tree | 692536bf45341f7a950da01c5c5b338a14e440fd /src/nodedef.h | |
| parent | 4503b03b26b48b546ce3837120f149cd696692a2 (diff) | |
| download | dragonfireclient-901d98b687d9681b83aface7e6697d6937023024.tar.xz | |
Optimize map generator for the dynamic content ids a bit
Diffstat (limited to 'src/nodedef.h')
| -rw-r--r-- | src/nodedef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index 54722f5af..0804e0279 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 content_t getId(const std::string &name) const=0; virtual const ContentFeatures& get(const std::string &name) const=0; virtual void serialize(std::ostream &os)=0; @@ -269,6 +270,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 content_t getId(const std::string &name) const=0; // If not found, returns the features of CONTENT_IGNORE virtual const ContentFeatures& get(const std::string &name) const=0; |
