#ifndef MAIN_HEADER
#define MAIN_HEADER
-#include <string>
-extern std::string getTimestamp();
-#define DTIME (getTimestamp()+": ")
-
-#include <jmutex.h>
-
// Settings
+#include "utility.h"
extern Settings g_settings;
-#include <fstream>
+// A thread safe wrapper to irrlicht
+// On a server build, this is always NULL.
+// TODO: Remove this
+#include "irrlichtwrapper.h"
+extern IrrlichtWrapper *g_irrlicht;
+
+// This makes and maps textures
+#include "tile.h"
+extern ITextureSource *g_texturesource;
// Debug streams
+
+#include <fstream>
+
extern std::ostream *dout_con_ptr;
extern std::ostream *derr_con_ptr;
extern std::ostream *dout_client_ptr;
#define dout_server (*dout_server_ptr)
#define derr_server (*derr_server_ptr)
-/*#ifndef SERVER
- #include "utility.h"
- extern TextureCache g_texturecache;
-#endif*/
-
-#include "irrlichtwrapper.h"
-//extern IrrlichtDevice *g_device;
-extern IrrlichtWrapper *g_irrlicht;
-
#endif