Improve glass
[oweals/minetest.git] / src / content_mapnode.h
index c1e12ab42785adc4bafa3d0f855decf0befbf6c2..3140f2179936ee90b057d6ca2c00cb05b7d21d85 100644 (file)
@@ -21,11 +21,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define CONTENT_MAPNODE_HEADER
 
 #include "mapnode.h"
+class IWritableNodeDefManager;
 
-void content_mapnode_init();
+/*
+       Initialize default node definitions
 
-extern content_t trans_table_19[21][2];
+       This accesses tsrc; if it is non-NULL, textures are set
+       for the nodes.
+
+       Client first calls this with tsrc=NULL to run some
+       unit tests and stuff, then it runs this again with tsrc
+       defined to get the textures.
 
+       Server only calls this once with tsrc=NULL.
+*/
+void content_mapnode_init(IWritableNodeDefManager *nodemgr);
+
+// Backwards compatibility for non-extended content types in v19
+extern content_t trans_table_19[21][2];
 MapNode mapnode_translate_from_internal(MapNode n_from, u8 version);
 MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
 
@@ -48,6 +61,7 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
 #define CONTENT_SIGN_WALL 14
 #define CONTENT_CHEST 15
 #define CONTENT_FURNACE 16
+#define CONTENT_LOCKABLE_CHEST 17
 
 #define CONTENT_FENCE 21