1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-31 23:45:22 +01:00

Tool aliases

This commit is contained in:
Perttu Ahola
2011-12-04 00:22:34 +02:00
parent 658d1a7235
commit 8addbc9655
5 changed files with 89 additions and 8 deletions

View File

@@ -85,6 +85,11 @@ public:
virtual bool registerTool(std::string toolname, const ToolDefinition &def)=0;
virtual void clear()=0;
// Set an alias so that entries named <name> will load as <convert_to>.
// Alias is not set if <name> has already been defined.
// Alias will be removed if <name> is defined at a later point of time.
virtual void setAlias(const std::string &name,
const std::string &convert_to)=0;
virtual void serialize(std::ostream &os)=0;
virtual void deSerialize(std::istream &is)=0;