mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-31 23:45:22 +01:00
Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user