diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-22 23:55:02 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-22 23:55:02 +0300 |
commit | 4a6b9a6ac1b07239474bce8d3ebf772ce75e862e (patch) | |
tree | 4d29d47ce8840b44efe044db0050099b92996475 /src/mapnode.h | |
parent | e0329a3caee863a2302748f710401bfc0dfa78db (diff) | |
download | minetest-4a6b9a6ac1b07239474bce8d3ebf772ce75e862e.tar.gz minetest-4a6b9a6ac1b07239474bce8d3ebf772ce75e862e.tar.bz2 minetest-4a6b9a6ac1b07239474bce8d3ebf772ce75e862e.zip |
Some work-in-progress stuff and many comment updates
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 5a1770230..09fe02ba1 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -151,13 +151,20 @@ struct ContentFeatures // This is used for collision detection. // Also for general solidness queries. bool walkable; + // Player can point to these bool pointable; + // Player can dig these bool diggable; + // Player can build on these bool buildable_to; + // Whether the node has no liquid, source liquid or flowing liquid enum LiquidType liquid_type; - // If true, param2 is set to direction when placed + // If true, param2 is set to direction when placed. Used for torches. // NOTE: the direction format is quite inefficient and should be changed bool wall_mounted; + // 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; // Inventory item string as which the node appears in inventory when dug. // Mineral overrides this. @@ -183,6 +190,7 @@ struct ContentFeatures buildable_to = false; liquid_type = LIQUID_NONE; wall_mounted = false; + air_equivalent = false; dug_item = ""; initial_metadata = NULL; } |