summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-18 11:31:23 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-18 11:31:23 +0300
commit05ab58cd145785867e3836ff025f11ce6fdd9410 (patch)
tree23dc25848a2773713339d7361293304e1cd3c27b /src/mapnode.h
parenteae2d35ca568ccb652169f83e6a995db273fba94 (diff)
downloadminetest-05ab58cd145785867e3836ff025f11ce6fdd9410.tar.gz
minetest-05ab58cd145785867e3836ff025f11ce6fdd9410.tar.bz2
minetest-05ab58cd145785867e3836ff025f11ce6fdd9410.zip
Automate texture listing for texture atlas making
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 5db337949..61f172eda 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -103,6 +103,9 @@ class NodeMetadata;
struct ContentFeatures
{
#ifndef SERVER
+ // List of all block textures that have been used (value is dummy)
+ core::map<std::string, bool> used_texturenames;
+
/*
0: up
1: down
@@ -151,6 +154,10 @@ struct ContentFeatures
// If true, node is equivalent to air. Torches are, air is. Water is not.
// Is used for example to check whether a mud block can have grass on.
bool air_equivalent;
+ // Whether this content type often contains mineral.
+ // Used for texture atlas creation.
+ // Currently only enabled for CONTENT_STONE.
+ bool often_contains_mineral;
// Inventory item string as which the node appears in inventory when dug.
// Mineral overrides this.
@@ -207,6 +214,7 @@ struct ContentFeatures
liquid_type = LIQUID_NONE;
wall_mounted = false;
air_equivalent = false;
+ often_contains_mineral = false;
dug_item = "";
initial_metadata = NULL;
liquid_alternative_flowing = CONTENT_IGNORE;