1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Create framework for getting rid of global definitions of node/tool/item/whatever types

This commit is contained in:
Perttu Ahola 2011-11-14 00:19:48 +02:00
parent 5fc791ac9a
commit abceeee92f
60 changed files with 1017 additions and 743 deletions

View file

@ -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];