From fa08294d09a46b603e9ff5e034010c0a7986c61a Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 4 Apr 2011 03:45:08 +0300 Subject: Node metadata framework --- src/mapnode.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mapnode.h') 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(); -- cgit v1.2.3