aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-04 03:45:08 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-04 03:45:08 +0300
commitfa08294d09a46b603e9ff5e034010c0a7986c61a (patch)
tree8765f5e066c7609e4df401ef4affabcd8a07241b /src/mapnode.h
parent2f466726e6e8c318d3277eff6d987197c13e8bd3 (diff)
downloadminetest-fa08294d09a46b603e9ff5e034010c0a7986c61a.tar.xz
Node metadata framework
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index ba08a37da..0762599c8 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serialization.h"
#include "tile.h"
#include "iirrlichtwrapper.h"
+#include "nodemetadata.h"
/*
Initializes all kind of stuff in here.
@@ -157,6 +158,9 @@ struct ContentFeatures
// Inventory item string as which the node appears in inventory when dug.
// Mineral overrides this.
std::string dug_item;
+
+ // Initial metadata is cloned from this
+ NodeMetadata *initial_metadata;
//TODO: Move more properties here
@@ -176,6 +180,7 @@ struct ContentFeatures
liquid_type = LIQUID_NONE;
wall_mounted = false;
dug_item = "";
+ initial_metadata = NULL;
}
~ContentFeatures();