summaryrefslogtreecommitdiff
path: root/src/content_mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-14 00:19:48 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:41 +0200
commitabceeee92f99b84ebb79968269835a4f509bfb90 (patch)
tree669edeca68fae4eb086ac4e4c1846b55d3aa779d /src/content_mapnode.h
parent5fc791ac9a15ea6f234ca2d23041c83679255746 (diff)
downloadminetest-abceeee92f99b84ebb79968269835a4f509bfb90.tar.gz
minetest-abceeee92f99b84ebb79968269835a4f509bfb90.tar.bz2
minetest-abceeee92f99b84ebb79968269835a4f509bfb90.zip
Create framework for getting rid of global definitions of node/tool/item/whatever types
Diffstat (limited to 'src/content_mapnode.h')
-rw-r--r--src/content_mapnode.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/content_mapnode.h b/src/content_mapnode.h
index b58119724..3946c1e4d 100644
--- a/src/content_mapnode.h
+++ b/src/content_mapnode.h
@@ -21,20 +21,21 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define CONTENT_MAPNODE_HEADER
#include "mapnode.h"
+class ITextureSource;
/*
Fills stuff to the global ContentFeatures lookup table.
- This accesses g_texturesource; if it is non-NULL, textures are set
+ This accesses tsrc; if it is non-NULL, textures are set
for the nodes.
- Client first calls this with g_texturesource=NULL to run some
- unit tests and stuff, then it runs this again with g_texturesource
+ 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 g_texturesource=NULL.
+ Server only calls this once with tsrc=NULL.
*/
-void content_mapnode_init();
+void content_mapnode_init(ITextureSource *tsrc);
// Backwards compatibility for non-extended content types in v19
extern content_t trans_table_19[21][2];