aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 23:50:31 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 23:50:31 +0200
commit4b00d4d9d2158fc65da39179448c03390f094987 (patch)
tree225075bfab4cd74f40b2c6e64cf4a9ee8ee04d2c /src/nodedef.h
parent6a5829788e3dbd4347933f78740ff43d1bcf9e5c (diff)
downloaddragonfireclient-4b00d4d9d2158fc65da39179448c03390f094987.tar.xz
Node definition aliases
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index e0b5c864c..f69b66c9f 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -279,6 +279,11 @@ public:
const ContentFeatures &def)=0;
// If returns CONTENT_IGNORE, could not allocate id
virtual content_t allocateDummy(const std::string &name)=0;
+ // Set an alias so that nodes 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;
/*
Update tile textures to latest return values of TextueSource.