]> git.lizzy.rs Git - dragonfireclient.git/blob - src/main.h
NetworkPacket: reading outside packet is now clearer.
[dragonfireclient.git] / src / main.h
1 /*
2 Minetest
3 Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef MAIN_HEADER
21 #define MAIN_HEADER
22
23 #include <string>
24
25 // Settings
26 class Settings;
27 extern Settings *g_settings;
28 extern std::string g_settings_path;
29
30 // Global profiler
31 class Profiler;
32 extern Profiler *g_profiler;
33
34 // Menu clouds
35 class Clouds;
36 extern Clouds *g_menuclouds;
37
38 // Scene manager used for menu clouds
39 namespace irr{namespace scene{class ISceneManager;}}
40 extern irr::scene::ISceneManager *g_menucloudsmgr;
41
42 // Debug streams
43
44 #include <fstream>
45
46 extern std::ostream *dout_con_ptr;
47 extern std::ostream *derr_con_ptr;
48 extern std::ostream *dout_client_ptr;
49 extern std::ostream *derr_client_ptr;
50 extern std::ostream *dout_server_ptr;
51 extern std::ostream *derr_server_ptr;
52
53 #define dout_con (*dout_con_ptr)
54 #define derr_con (*derr_con_ptr)
55 #define dout_client (*dout_client_ptr)
56 #define derr_client (*derr_client_ptr)
57 #define dout_server (*dout_server_ptr)
58 #define derr_server (*derr_server_ptr)
59
60 #endif
61