summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-14 12:08:03 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-14 12:08:03 +0200
commit00810408a8cf1e5212cc8efa1287fd3745232f13 (patch)
tree5e43a94d2781686dffb1396c60ac28608bd54c51 /src/mapnode.h
parent5573142a2bd4fe65adf4219b21e6708296610563 (diff)
downloadminetest-00810408a8cf1e5212cc8efa1287fd3745232f13.tar.gz
minetest-00810408a8cf1e5212cc8efa1287fd3745232f13.tar.bz2
minetest-00810408a8cf1e5212cc8efa1287fd3745232f13.zip
New way of determining the outcome of digging
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 37a0b3aa6..d67b9629e 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -154,7 +154,13 @@ struct ContentFeatures
bool diggable;
bool buildable_to;
enum LiquidType liquid_type;
- bool wall_mounted; // If true, param2 is set to direction when placed
+ // If true, param2 is set to direction when placed
+ // NOTE: the direction format is quite inefficient and should be changed
+ bool wall_mounted;
+
+ // Inventory item string as which the node appears in inventory when dug.
+ // Mineral overrides this.
+ std::string dug_item;
//TODO: Move more properties here
@@ -173,6 +179,7 @@ struct ContentFeatures
buildable_to = false;
liquid_type = LIQUID_NONE;
wall_mounted = false;
+ dug_item = "";
}
~ContentFeatures();