1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

GameDef compiles

This commit is contained in:
Perttu Ahola 2011-11-14 21:41:30 +02:00
parent abceeee92f
commit c6fd2986d4
49 changed files with 1168 additions and 1045 deletions

View file

@ -32,7 +32,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "gamedef.h"
struct LuaState;
typedef struct lua_State lua_State;
class IToolDefManager;
class IWritableToolDefManager;
class IWritableNodeDefManager;
/*
Some random functions
@ -486,10 +487,9 @@ public:
// IGameDef interface
// Under envlock
virtual IToolDefManager* getToolDefManager()
{ return m_toolmgr; }
virtual INodeDefManager* getNodeDefManager()
{ assert(0); return NULL; } // TODO
virtual IToolDefManager* getToolDefManager();
virtual INodeDefManager* getNodeDefManager();
virtual ITextureSource* getTextureSource();
private:
@ -616,7 +616,10 @@ private:
lua_State *m_lua;
// Tool definition manager
IToolDefManager *m_toolmgr;
IWritableToolDefManager *m_toolmgr;
// Node definition manager
IWritableNodeDefManager *m_nodemgr;
/*
Threads