From 05ab58cd145785867e3836ff025f11ce6fdd9410 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 18 Oct 2011 11:31:23 +0300 Subject: Automate texture listing for texture atlas making --- src/mapnode.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mapnode.h') 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 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; -- cgit v1.2.3