aboutsummaryrefslogtreecommitdiff
path: root/src/tooldef.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-04 02:12:45 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-04 02:12:45 +0200
commit6145a135bd71425c69d31e6c65112238e08349a5 (patch)
treedc1b839ebd4b35cb84a14b95d339843c11e75bf1 /src/tooldef.h
parent97c3bc408be0636b5821b7792957d18272e8f7bb (diff)
downloadminetest-6145a135bd71425c69d31e6c65112238e08349a5.tar.gz
minetest-6145a135bd71425c69d31e6c65112238e08349a5.tar.bz2
minetest-6145a135bd71425c69d31e6c65112238e08349a5.zip
Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting)
Diffstat (limited to 'src/tooldef.h')
-rw-r--r--src/tooldef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tooldef.h b/src/tooldef.h
index e28935e43..c30579cb2 100644
--- a/src/tooldef.h
+++ b/src/tooldef.h
@@ -69,6 +69,7 @@ public:
virtual std::string getImagename(const std::string &toolname) const =0;
virtual ToolDiggingProperties getDiggingProperties(
const std::string &toolname) const =0;
+ virtual std::string getAlias(const std::string &name) const =0;
virtual void serialize(std::ostream &os)=0;
};
@@ -82,6 +83,7 @@ public:
virtual std::string getImagename(const std::string &toolname) const =0;
virtual ToolDiggingProperties getDiggingProperties(
const std::string &toolname) const =0;
+ virtual std::string getAlias(const std::string &name) const =0;
virtual bool registerTool(std::string toolname, const ToolDefinition &def)=0;
virtual void clear()=0;