mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Automate texture listing for texture atlas making
This commit is contained in:
parent
eae2d35ca5
commit
05ab58cd14
5 changed files with 81 additions and 44 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue