mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
C++ modernize: Pragma once (#6264)
* Migrate cpp headers to pragma once
This commit is contained in:
parent
c738d1eeab
commit
921151d97a
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ACTIVEOBJECT_HEADER
|
#pragma once
|
||||||
#define ACTIVEOBJECT_HEADER
|
|
||||||
|
|
||||||
#include "irr_aabb3d.h"
|
#include "irr_aabb3d.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -102,6 +101,3 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
u16 m_id; // 0 is invalid, "no id"
|
u16 m_id; // 0 is invalid, "no id"
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BAN_HEADER
|
#pragma once
|
||||||
#define BAN_HEADER
|
|
||||||
|
|
||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
#include "threading/thread.h"
|
#include "threading/thread.h"
|
||||||
@ -48,5 +47,3 @@ private:
|
|||||||
StringMap m_ips;
|
StringMap m_ips;
|
||||||
bool m_modified = false;
|
bool m_modified = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CAMERA_HEADER
|
#pragma once
|
||||||
#define CAMERA_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "inventory.h"
|
#include "inventory.h"
|
||||||
@ -232,5 +231,3 @@ private:
|
|||||||
|
|
||||||
std::list<Nametag *> m_nametags;
|
std::list<Nametag *> m_nametags;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CAVEGEN_HEADER
|
#pragma once
|
||||||
#define CAVEGEN_HEADER
|
|
||||||
|
|
||||||
#define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1
|
#define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1
|
||||||
|
|
||||||
@ -241,5 +240,3 @@ private:
|
|||||||
|
|
||||||
inline s16 getSurfaceFromHeightmap(v3s16 p);
|
inline s16 getSurfaceFromHeightmap(v3s16 p);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CHAT_HEADER
|
#pragma once
|
||||||
#define CHAT_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -287,6 +286,3 @@ private:
|
|||||||
ChatBuffer m_recent_buffer;
|
ChatBuffer m_recent_buffer;
|
||||||
ChatPrompt m_prompt;
|
ChatPrompt m_prompt;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CHAT_INTERFACE_H
|
#pragma once
|
||||||
#define CHAT_INTERFACE_H
|
|
||||||
|
|
||||||
#include "util/container.h"
|
#include "util/container.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -78,5 +77,3 @@ struct ChatInterface {
|
|||||||
MutexedQueue<ChatEvent *> command_queue; // chat backend --> server
|
MutexedQueue<ChatEvent *> command_queue; // chat backend --> server
|
||||||
MutexedQueue<ChatEvent *> outgoing_queue; // server --> chat backend
|
MutexedQueue<ChatEvent *> outgoing_queue; // server --> chat backend
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MT_CHATMESSAGE_H
|
#pragma once
|
||||||
#define MT_CHATMESSAGE_H
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
@ -47,5 +46,3 @@ struct ChatMessage
|
|||||||
std::wstring sender = L"";
|
std::wstring sender = L"";
|
||||||
std::time_t timestamp = std::time(0);
|
std::time_t timestamp = std::time(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIENT_HEADER
|
#pragma once
|
||||||
#define CLIENT_HEADER
|
|
||||||
|
|
||||||
#include "network/connection.h"
|
#include "network/connection.h"
|
||||||
#include "clientenvironment.h"
|
#include "clientenvironment.h"
|
||||||
@ -718,5 +717,3 @@ private:
|
|||||||
u64 m_csm_flavour_limits = CSMFlavourLimit::CSM_FL_NONE;
|
u64 m_csm_flavour_limits = CSMFlavourLimit::CSM_FL_NONE;
|
||||||
u32 m_csm_noderange_limit = 8;
|
u32 m_csm_noderange_limit = 8;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !CLIENT_HEADER
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CLIENT_LAUNCHER_H__
|
#pragma once
|
||||||
#define __CLIENT_LAUNCHER_H__
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "client/inputhandler.h"
|
#include "client/inputhandler.h"
|
||||||
@ -69,5 +68,3 @@ protected:
|
|||||||
std::string current_address = "does-not-exist";
|
std::string current_address = "does-not-exist";
|
||||||
int current_port = 0;
|
int current_port = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef INPUT_HANDLER_H
|
#pragma once
|
||||||
#define INPUT_HANDLER_H
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "joystick_controller.h"
|
#include "joystick_controller.h"
|
||||||
@ -393,5 +392,3 @@ private:
|
|||||||
bool leftreleased = false;
|
bool leftreleased = false;
|
||||||
bool rightreleased = false;
|
bool rightreleased = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef JOYSTICK_HEADER
|
#pragma once
|
||||||
#define JOYSTICK_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
@ -168,5 +167,3 @@ private:
|
|||||||
std::bitset<KeyType::INTERNAL_ENUM_COUNT> m_past_pressed_keys;
|
std::bitset<KeyType::INTERNAL_ENUM_COUNT> m_past_pressed_keys;
|
||||||
std::bitset<KeyType::INTERNAL_ENUM_COUNT> m_past_released_keys;
|
std::bitset<KeyType::INTERNAL_ENUM_COUNT> m_past_released_keys;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef KEYS_HEADER
|
#pragma once
|
||||||
#define KEYS_HEADER
|
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
@ -114,5 +113,3 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef KeyType::T GameKeyType;
|
typedef KeyType::T GameKeyType;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TILE_HEADER
|
#pragma once
|
||||||
#define TILE_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
#include "irr_v3d.h"
|
#include "irr_v3d.h"
|
||||||
@ -330,4 +329,3 @@ struct TileSpec
|
|||||||
//! The first is base texture, the second is overlay.
|
//! The first is base texture, the second is overlay.
|
||||||
TileLayer layers[MAX_TILE_LAYERS];
|
TileLayer layers[MAX_TILE_LAYERS];
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIENT_ENVIRONMENT_HEADER
|
#pragma once
|
||||||
#define CLIENT_ENVIRONMENT_HEADER
|
|
||||||
|
|
||||||
#include <ISceneManager.h>
|
#include <ISceneManager.h>
|
||||||
#include "environment.h"
|
#include "environment.h"
|
||||||
@ -158,5 +157,3 @@ private:
|
|||||||
std::list<std::string> m_player_names;
|
std::list<std::string> m_player_names;
|
||||||
v3s16 m_camera_offset;
|
v3s16 m_camera_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -16,8 +16,8 @@ You should have received a copy of the GNU Lesser General Public License along
|
|||||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
#ifndef _CLIENTIFACE_H_
|
|
||||||
#define _CLIENTIFACE_H_
|
#pragma once
|
||||||
|
|
||||||
#include "irr_v3d.h" // for irrlicht datatypes
|
#include "irr_v3d.h" // for irrlicht datatypes
|
||||||
|
|
||||||
@ -500,5 +500,3 @@ private:
|
|||||||
|
|
||||||
static const char *statenames[];
|
static const char *statenames[];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIENTMAP_HEADER
|
#pragma once
|
||||||
#define CLIENTMAP_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
@ -137,6 +136,3 @@ private:
|
|||||||
bool m_cache_bilinear_filter;
|
bool m_cache_bilinear_filter;
|
||||||
bool m_cache_anistropic_filter;
|
bool m_cache_anistropic_filter;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIENTMEDIA_HEADER
|
#pragma once
|
||||||
#define CLIENTMEDIA_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
#include "filecache.h"
|
#include "filecache.h"
|
||||||
@ -147,5 +146,3 @@ private:
|
|||||||
std::string m_name_bound = "";
|
std::string m_name_bound = "";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !CLIENTMEDIA_HEADER
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIENTOBJECT_HEADER
|
#pragma once
|
||||||
#define CLIENTOBJECT_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "activeobject.h"
|
#include "activeobject.h"
|
||||||
@ -106,5 +105,3 @@ struct DistanceSortedActiveObject
|
|||||||
return d < other.d;
|
return d < other.d;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIENTSIMPLEOBJECT_HEADER
|
#pragma once
|
||||||
#define CLIENTSIMPLEOBJECT_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_bloated.h"
|
#include "irrlichttypes_bloated.h"
|
||||||
class ClientEnvironment;
|
class ClientEnvironment;
|
||||||
@ -34,5 +33,3 @@ public:
|
|||||||
|
|
||||||
virtual void step(float dtime) {}
|
virtual void step(float dtime) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLOUDPARAMS_HEADER
|
#pragma once
|
||||||
#define CLOUDPARAMS_HEADER
|
|
||||||
|
|
||||||
struct CloudParams
|
struct CloudParams
|
||||||
{
|
{
|
||||||
@ -29,5 +28,3 @@ struct CloudParams
|
|||||||
float height;
|
float height;
|
||||||
v2f speed;
|
v2f speed;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLOUDS_HEADER
|
#pragma once
|
||||||
#define CLOUDS_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -143,7 +142,3 @@ private:
|
|||||||
bool m_camera_inside_cloud = false;
|
bool m_camera_inside_cloud = false;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// Filled in by the build system
|
// Filled in by the build system
|
||||||
|
|
||||||
#ifndef CMAKE_CONFIG_H
|
#pragma once
|
||||||
#define CMAKE_CONFIG_H
|
|
||||||
|
|
||||||
#define PROJECT_NAME "@PROJECT_NAME@"
|
#define PROJECT_NAME "@PROJECT_NAME@"
|
||||||
#define PROJECT_NAME_C "@PROJECT_NAME_CAPITALIZED@"
|
#define PROJECT_NAME_C "@PROJECT_NAME_CAPITALIZED@"
|
||||||
@ -34,6 +33,3 @@
|
|||||||
#cmakedefine01 CURSES_HAVE_NCURSES_CURSES_H
|
#cmakedefine01 CURSES_HAVE_NCURSES_CURSES_H
|
||||||
#cmakedefine01 CURSES_HAVE_NCURSESW_NCURSES_H
|
#cmakedefine01 CURSES_HAVE_NCURSESW_NCURSES_H
|
||||||
#cmakedefine01 CURSES_HAVE_NCURSESW_CURSES_H
|
#cmakedefine01 CURSES_HAVE_NCURSESW_CURSES_H
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
// Filled in by the build system
|
// Filled in by the build system
|
||||||
// Separated from cmake_config.h to avoid excessive rebuilds on every commit
|
// Separated from cmake_config.h to avoid excessive rebuilds on every commit
|
||||||
|
|
||||||
#ifndef CMAKE_CONFIG_GITHASH_H
|
#pragma once
|
||||||
#define CMAKE_CONFIG_GITHASH_H
|
|
||||||
|
|
||||||
#define VERSION_GITHASH "@VERSION_GITHASH@"
|
#define VERSION_GITHASH "@VERSION_GITHASH@"
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COLLISION_HEADER
|
#pragma once
|
||||||
#define COLLISION_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_bloated.h"
|
#include "irrlichttypes_bloated.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -76,7 +75,3 @@ bool wouldCollideWithCeiling(
|
|||||||
const std::vector<aabb3f> &staticboxes,
|
const std::vector<aabb3f> &staticboxes,
|
||||||
const aabb3f &movingbox,
|
const aabb3f &movingbox,
|
||||||
f32 y_increase, f32 d);
|
f32 y_increase, f32 d);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
Otherwise use default values
|
Otherwise use default values
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_H
|
#pragma once
|
||||||
#define CONFIG_H
|
|
||||||
|
|
||||||
#define STRINGIFY(x) #x
|
#define STRINGIFY(x) #x
|
||||||
#define STR(x) STRINGIFY(x)
|
#define STR(x) STRINGIFY(x)
|
||||||
@ -38,5 +37,3 @@
|
|||||||
" USE_FREETYPE=" STR(USE_FREETYPE) \
|
" USE_FREETYPE=" STR(USE_FREETYPE) \
|
||||||
" USE_LUAJIT=" STR(USE_LUAJIT) \
|
" USE_LUAJIT=" STR(USE_LUAJIT) \
|
||||||
" STATIC_SHAREDIR=" STR(STATIC_SHAREDIR)
|
" STATIC_SHAREDIR=" STR(STATIC_SHAREDIR)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONSTANTS_HEADER
|
#pragma once
|
||||||
#define CONSTANTS_HEADER
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
All kinds of constants.
|
All kinds of constants.
|
||||||
@ -118,5 +117,3 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#define TTF_DEFAULT_FONT_SIZE (16)
|
#define TTF_DEFAULT_FONT_SIZE (16)
|
||||||
#endif
|
#endif
|
||||||
#define DEFAULT_FONT_SIZE (10)
|
#define DEFAULT_FONT_SIZE (10)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTENT_CAO_HEADER
|
#pragma once
|
||||||
#define CONTENT_CAO_HEADER
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
@ -214,6 +213,3 @@ public:
|
|||||||
return m_prop.infotext;
|
return m_prop.infotext;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,14 +17,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTENT_CSO_HEADER
|
#pragma once
|
||||||
#define CONTENT_CSO_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "clientsimpleobject.h"
|
#include "clientsimpleobject.h"
|
||||||
|
|
||||||
ClientSimpleObject* createSmokePuff(scene::ISceneManager *smgr,
|
ClientSimpleObject* createSmokePuff(scene::ISceneManager *smgr,
|
||||||
ClientEnvironment *env, v3f pos, v2f size);
|
ClientEnvironment *env, v3f pos, v2f size);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTENT_MAPBLOCK_HEADER
|
#pragma once
|
||||||
#define CONTENT_MAPBLOCK_HEADER
|
|
||||||
|
|
||||||
#include "nodedef.h"
|
#include "nodedef.h"
|
||||||
#include <IMeshManipulator.h>
|
#include <IMeshManipulator.h>
|
||||||
@ -146,5 +145,3 @@ public:
|
|||||||
MapblockMeshGenerator(MeshMakeData *input, MeshCollector *output);
|
MapblockMeshGenerator(MeshMakeData *input, MeshCollector *output);
|
||||||
void generate();
|
void generate();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTENT_MAPNODE_HEADER
|
#pragma once
|
||||||
#define CONTENT_MAPNODE_HEADER
|
|
||||||
|
|
||||||
#include "mapnode.h"
|
#include "mapnode.h"
|
||||||
|
|
||||||
@ -33,5 +32,3 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
|
|||||||
// Get legacy node name mapping for loading old blocks
|
// Get legacy node name mapping for loading old blocks
|
||||||
class NameIdMapping;
|
class NameIdMapping;
|
||||||
void content_mapnode_get_name_id_mapping(NameIdMapping *nimap);
|
void content_mapnode_get_name_id_mapping(NameIdMapping *nimap);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTENT_NODEMETA_HEADER
|
#pragma once
|
||||||
#define CONTENT_NODEMETA_HEADER
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@ -33,6 +32,3 @@ class IItemDefManager;
|
|||||||
void content_nodemeta_deserialize_legacy(std::istream &is,
|
void content_nodemeta_deserialize_legacy(std::istream &is,
|
||||||
NodeMetadataList *meta, NodeTimerList *timers,
|
NodeMetadataList *meta, NodeTimerList *timers,
|
||||||
IItemDefManager *item_def_mgr);
|
IItemDefManager *item_def_mgr);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONTENT_SAO_HEADER
|
#pragma once
|
||||||
#define CONTENT_SAO_HEADER
|
|
||||||
|
|
||||||
#include <util/numeric.h>
|
#include <util/numeric.h>
|
||||||
#include "serverobject.h"
|
#include "serverobject.h"
|
||||||
@ -412,5 +411,3 @@ public:
|
|||||||
bool m_physics_override_new_move = true;
|
bool m_physics_override_new_move = true;
|
||||||
bool m_physics_override_sent = false;
|
bool m_physics_override_sent = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,12 +17,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONVERT_JSON_H__
|
#pragma once
|
||||||
#define __CONVERT_JSON_H__
|
|
||||||
|
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
Json::Value fetchJsonValue(const std::string &url,
|
Json::Value fetchJsonValue(const std::string &url,
|
||||||
std::vector<std::string> *extra_headers);
|
std::vector<std::string> *extra_headers);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CRAFTDEF_HEADER
|
#pragma once
|
||||||
#define CRAFTDEF_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -446,6 +445,3 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
IWritableCraftDefManager* createCraftDefManager();
|
IWritableCraftDefManager* createCraftDefManager();
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_DUMMY_HEADER
|
#pragma once
|
||||||
#define DATABASE_DUMMY_HEADER
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -44,5 +43,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::map<s64, std::string> m_database;
|
std::map<s64, std::string> m_database;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_FILES_HEADER
|
#pragma once
|
||||||
#define DATABASE_FILES_HEADER
|
|
||||||
|
|
||||||
// !!! WARNING !!!
|
// !!! WARNING !!!
|
||||||
// This backend is intended to be used on Minetest 0.4.16 only for the transition backend
|
// This backend is intended to be used on Minetest 0.4.16 only for the transition backend
|
||||||
@ -42,5 +41,3 @@ private:
|
|||||||
|
|
||||||
std::string m_savedir;
|
std::string m_savedir;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_LEVELDB_HEADER
|
#pragma once
|
||||||
#define DATABASE_LEVELDB_HEADER
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
@ -47,5 +46,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif // USE_LEVELDB
|
#endif // USE_LEVELDB
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_POSTGRESQL_HEADER
|
#pragma once
|
||||||
#define DATABASE_POSTGRESQL_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <libpq-fe.h>
|
#include <libpq-fe.h>
|
||||||
@ -145,6 +144,3 @@ protected:
|
|||||||
private:
|
private:
|
||||||
bool playerDataExists(const std::string &playername);
|
bool playerDataExists(const std::string &playername);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_REDIS_HEADER
|
#pragma once
|
||||||
#define DATABASE_REDIS_HEADER
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
@ -50,5 +49,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif // USE_REDIS
|
#endif // USE_REDIS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_SQLITE3_HEADER
|
#pragma once
|
||||||
#define DATABASE_SQLITE3_HEADER
|
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -192,5 +191,3 @@ private:
|
|||||||
sqlite3_stmt *m_stmt_player_metadata_remove = nullptr;
|
sqlite3_stmt *m_stmt_player_metadata_remove = nullptr;
|
||||||
sqlite3_stmt *m_stmt_player_metadata_add = nullptr;
|
sqlite3_stmt *m_stmt_player_metadata_add = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATABASE_HEADER
|
#pragma once
|
||||||
#define DATABASE_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -61,5 +60,3 @@ public:
|
|||||||
virtual bool removePlayer(const std::string &name) = 0;
|
virtual bool removePlayer(const std::string &name) = 0;
|
||||||
virtual void listPlayers(std::vector<std::string> &res) = 0;
|
virtual void listPlayers(std::vector<std::string> &res) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DAYNIGHTRATIO_HEADER
|
#pragma once
|
||||||
#define DAYNIGHTRATIO_HEADER
|
|
||||||
|
|
||||||
inline u32 time_to_daynight_ratio(float time_of_day, bool smooth)
|
inline u32 time_to_daynight_ratio(float time_of_day, bool smooth)
|
||||||
{
|
{
|
||||||
@ -64,6 +63,3 @@ inline u32 time_to_daynight_ratio(float time_of_day, bool smooth)
|
|||||||
return 1000;
|
return 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEBUG_HEADER
|
#pragma once
|
||||||
#define DEBUG_HEADER
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
@ -131,7 +130,3 @@ private:
|
|||||||
#define BEGIN_DEBUG_EXCEPTION_HANDLER
|
#define BEGIN_DEBUG_EXCEPTION_HANDLER
|
||||||
#define END_DEBUG_EXCEPTION_HANDLER
|
#define END_DEBUG_EXCEPTION_HANDLER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // DEBUG_HEADER
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEFAULTSETTINGS_HEADER
|
#pragma once
|
||||||
#define DEFAULTSETTINGS_HEADER
|
|
||||||
|
|
||||||
class Settings;
|
class Settings;
|
||||||
|
|
||||||
@ -34,5 +33,3 @@ void set_default_settings(Settings *settings);
|
|||||||
* @param from source settings pointer
|
* @param from source settings pointer
|
||||||
*/
|
*/
|
||||||
void override_default_settings(Settings *settings, Settings *from);
|
void override_default_settings(Settings *settings, Settings *from);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DUNGEONGEN_HEADER
|
#pragma once
|
||||||
#define DUNGEONGEN_HEADER
|
|
||||||
|
|
||||||
#include "voxel.h"
|
#include "voxel.h"
|
||||||
#include "noise.h"
|
#include "noise.h"
|
||||||
@ -109,5 +108,3 @@ public:
|
|||||||
|
|
||||||
extern NoiseParams nparams_dungeon_density;
|
extern NoiseParams nparams_dungeon_density;
|
||||||
extern NoiseParams nparams_dungeon_alt_wall;
|
extern NoiseParams nparams_dungeon_alt_wall;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EMERGE_HEADER
|
#pragma once
|
||||||
#define EMERGE_HEADER
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
@ -174,5 +173,3 @@ private:
|
|||||||
|
|
||||||
friend class EmergeThread;
|
friend class EmergeThread;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ENVIRONMENT_HEADER
|
#pragma once
|
||||||
#define ENVIRONMENT_HEADER
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This class is the game's environment.
|
This class is the game's environment.
|
||||||
@ -144,5 +143,3 @@ protected:
|
|||||||
private:
|
private:
|
||||||
std::mutex m_time_lock;
|
std::mutex m_time_lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EVENT_HEADER
|
#pragma once
|
||||||
#define EVENT_HEADER
|
|
||||||
|
|
||||||
class MtEvent
|
class MtEvent
|
||||||
{
|
{
|
||||||
@ -67,6 +66,3 @@ public:
|
|||||||
virtual void reg(MtEventReceiver *r, const char *type) = 0;
|
virtual void reg(MtEventReceiver *r, const char *type) = 0;
|
||||||
virtual void dereg(MtEventReceiver *r, const char *type) = 0;
|
virtual void dereg(MtEventReceiver *r, const char *type) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EVENT_MANAGER_HEADER
|
#pragma once
|
||||||
#define EVENT_MANAGER_HEADER
|
|
||||||
|
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
#include <list>
|
#include <list>
|
||||||
@ -110,6 +109,3 @@ public:
|
|||||||
dereg(type, EventManager::receiverReceive, r);
|
dereg(type, EventManager::receiverReceive, r);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EXCEPTIONS_HEADER
|
#pragma once
|
||||||
#define EXCEPTIONS_HEADER
|
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -129,6 +128,3 @@ public:
|
|||||||
BaseException(s)
|
BaseException(s)
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FACE_POSITION_CACHE_HEADER
|
#pragma once
|
||||||
#define FACE_POSITION_CACHE_HEADER
|
|
||||||
|
|
||||||
#include "irr_v3d.h"
|
#include "irr_v3d.h"
|
||||||
|
|
||||||
@ -40,5 +39,3 @@ private:
|
|||||||
static std::unordered_map<u16, std::vector<v3s16>> cache;
|
static std::unordered_map<u16, std::vector<v3s16>> cache;
|
||||||
static std::mutex cache_mutex;
|
static std::mutex cache_mutex;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FILECACHE_HEADER
|
#pragma once
|
||||||
#define FILECACHE_HEADER
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -41,5 +40,3 @@ private:
|
|||||||
bool loadByPath(const std::string &path, std::ostream &os);
|
bool loadByPath(const std::string &path, std::ostream &os);
|
||||||
bool updateByPath(const std::string &path, const std::string &data);
|
bool updateByPath(const std::string &path, const std::string &data);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FILESYS_HEADER
|
#pragma once
|
||||||
#define FILESYS_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -118,6 +117,3 @@ bool safeWriteToFile(const std::string &path, const std::string &content);
|
|||||||
bool Rename(const std::string &from, const std::string &to);
|
bool Rename(const std::string &from, const std::string &to);
|
||||||
|
|
||||||
} // namespace fs
|
} // namespace fs
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ You should have received a copy of the GNU Lesser General Public License along
|
|||||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __FONTENGINE_H__
|
|
||||||
#define __FONTENGINE_H__
|
#pragma once
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -135,5 +135,3 @@ private:
|
|||||||
|
|
||||||
/** interface to access main font engine*/
|
/** interface to access main font engine*/
|
||||||
extern FontEngine* g_fontengine;
|
extern FontEngine* g_fontengine;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GAME_HEADER
|
#pragma once
|
||||||
#define GAME_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -52,5 +51,3 @@ void the_game(bool *kill,
|
|||||||
bool *reconnect_requested,
|
bool *reconnect_requested,
|
||||||
const SubgameSpec &gamespec, // Used for local game
|
const SubgameSpec &gamespec, // Used for local game
|
||||||
bool simple_singleplayer_mode);
|
bool simple_singleplayer_mode);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GAMEDEF_HEADER
|
#pragma once
|
||||||
#define GAMEDEF_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -80,6 +79,3 @@ public:
|
|||||||
virtual bool registerModStorage(ModMetadata *storage) = 0;
|
virtual bool registerModStorage(ModMetadata *storage) = 0;
|
||||||
virtual void unregisterModStorage(const std::string &name) = 0;
|
virtual void unregisterModStorage(const std::string &name) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GAME_PARAMS_H
|
#pragma once
|
||||||
#define GAME_PARAMS_H
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
|
|
||||||
@ -31,5 +30,3 @@ struct GameParams
|
|||||||
SubgameSpec game_spec;
|
SubgameSpec game_spec;
|
||||||
bool is_dedicated_server;
|
bool is_dedicated_server;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GENERICOBJECT_HEADER
|
#pragma once
|
||||||
#define GENERICOBJECT_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "irrlichttypes_bloated.h"
|
#include "irrlichttypes_bloated.h"
|
||||||
@ -83,6 +82,3 @@ std::string gob_cmd_update_nametag_attributes(video::SColor color);
|
|||||||
|
|
||||||
std::string gob_cmd_update_infant(u16 id, u8 type,
|
std::string gob_cmd_update_infant(u16 id, u8 type,
|
||||||
const std::string &client_initialization_data);
|
const std::string &client_initialization_data);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GETTEXT_HEADER
|
#pragma once
|
||||||
#define GETTEXT_HEADER
|
|
||||||
|
|
||||||
#include "config.h" // for USE_GETTEXT
|
#include "config.h" // for USE_GETTEXT
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -59,5 +58,3 @@ inline std::string strgettext(const std::string &text)
|
|||||||
{
|
{
|
||||||
return gettext(text.c_str());
|
return gettext(text.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GETTIME_HEADER
|
#pragma once
|
||||||
#define GETTIME_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -42,5 +41,3 @@ inline std::string getTimestamp()
|
|||||||
strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
|
strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
|
||||||
return cs;
|
return cs;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUICHATCONSOLE_HEADER
|
#pragma once
|
||||||
#define GUICHATCONSOLE_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "modalMenu.h"
|
#include "modalMenu.h"
|
||||||
@ -132,7 +131,3 @@ private:
|
|||||||
gui::IGUIFont *m_font = nullptr;
|
gui::IGUIFont *m_font = nullptr;
|
||||||
v2u32 m_fontsize;
|
v2u32 m_fontsize;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUI_ENGINE_H_
|
#pragma once
|
||||||
#define GUI_ENGINE_H_
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* Includes */
|
/* Includes */
|
||||||
@ -303,5 +302,3 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* GUI_ENGINE_H_ */
|
|
||||||
|
@ -17,9 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
#ifndef GUIINVENTORYMENU_HEADER
|
|
||||||
#define GUIINVENTORYMENU_HEADER
|
|
||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
@ -567,5 +565,3 @@ public:
|
|||||||
|
|
||||||
std::string m_formspec;
|
std::string m_formspec;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUIKEYCHANGEMENU_HEADER
|
#pragma once
|
||||||
#define GUIKEYCHANGEMENU_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "modalMenu.h"
|
#include "modalMenu.h"
|
||||||
@ -73,5 +72,3 @@ private:
|
|||||||
gui::IGUIStaticText *key_used_text = nullptr;
|
gui::IGUIStaticText *key_used_text = nullptr;
|
||||||
std::vector<key_setting *> key_settings;
|
std::vector<key_setting *> key_settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUIMAINMENU_HEADER
|
#pragma once
|
||||||
#define GUIMAINMENU_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "modalMenu.h"
|
#include "modalMenu.h"
|
||||||
@ -54,6 +53,3 @@ struct MainMenuData {
|
|||||||
|
|
||||||
MainMenuData() {}
|
MainMenuData() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -16,8 +16,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|||||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUIPASSWORDCHANGE_HEADER
|
#pragma once
|
||||||
#define GUIPASSWORDCHANGE_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "modalMenu.h"
|
#include "modalMenu.h"
|
||||||
@ -52,5 +51,3 @@ private:
|
|||||||
std::wstring m_newpass = L"";
|
std::wstring m_newpass = L"";
|
||||||
std::wstring m_newpass_confirm = L"";
|
std::wstring m_newpass_confirm = L"";
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUIFILESELECTMENU_H_
|
#pragma once
|
||||||
#define GUIFILESELECTMENU_H_
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -58,5 +57,3 @@ private:
|
|||||||
std::string m_formname;
|
std::string m_formname;
|
||||||
bool m_file_select_dialog;
|
bool m_file_select_dialog;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* GUIFILESELECTMENU_H_ */
|
|
||||||
|
@ -17,9 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
#ifndef GUITABLE_HEADER
|
|
||||||
#define GUITABLE_HEADER
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
@ -256,6 +254,3 @@ protected:
|
|||||||
static void alignContent(Cell *cell, s32 xmax, s32 content_width,
|
static void alignContent(Cell *cell, s32 xmax, s32 content_width,
|
||||||
s32 align);
|
s32 align);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|||||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GUIVOLUMECHANGE_HEADER
|
#pragma once
|
||||||
#define GUIVOLUMECHANGE_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "modalMenu.h"
|
#include "modalMenu.h"
|
||||||
@ -44,6 +43,3 @@ public:
|
|||||||
|
|
||||||
bool pausesGame() { return true; }
|
bool pausesGame() { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ You should have received a copy of the GNU Lesser General Public License along
|
|||||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
#ifndef _GUI_SCALING_FILTER_H_
|
|
||||||
#define _GUI_SCALING_FILTER_H_
|
#pragma once
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
|
|
||||||
@ -48,5 +48,3 @@ void draw2DImageFilterScaled(video::IVideoDriver *driver, video::ITexture *txr,
|
|||||||
const core::rect<s32> &destrect, const core::rect<s32> &srcrect,
|
const core::rect<s32> &destrect, const core::rect<s32> &srcrect,
|
||||||
const core::rect<s32> *cliprect = 0, const video::SColor *const colors = 0,
|
const core::rect<s32> *cliprect = 0, const video::SColor *const colors = 0,
|
||||||
bool usealpha = false);
|
bool usealpha = false);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HTTPFETCH_HEADER
|
#pragma once
|
||||||
#define HTTPFETCH_HEADER
|
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
@ -113,5 +112,3 @@ void httpfetch_caller_free(unsigned long caller);
|
|||||||
// Performs a synchronous HTTP request. This blocks and therefore should
|
// Performs a synchronous HTTP request. This blocks and therefore should
|
||||||
// only be used from background threads.
|
// only be used from background threads.
|
||||||
void httpfetch_sync(const HTTPFetchRequest &fetch_request, HTTPFetchResult &fetch_result);
|
void httpfetch_sync(const HTTPFetchRequest &fetch_request, HTTPFetchResult &fetch_result);
|
||||||
|
|
||||||
#endif // !HTTPFETCH_HEADER
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HUD_HEADER
|
#pragma once
|
||||||
#define HUD_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -197,5 +196,3 @@ void drawItemStack(video::IVideoDriver *driver,
|
|||||||
ItemRotationKind rotation_kind);
|
ItemRotationKind rotation_kind);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -16,8 +16,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _IMAGE_FILTERS_H_
|
#pragma once
|
||||||
#define _IMAGE_FILTERS_H_
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
|
|
||||||
@ -42,5 +41,3 @@ void imageCleanTransparent(video::IImage *src, u32 threshold);
|
|||||||
* and downscaling.
|
* and downscaling.
|
||||||
*/
|
*/
|
||||||
void imageScaleNNAA(video::IImage *src, const core::rect<s32> &srcrect, video::IImage *dest);
|
void imageScaleNNAA(video::IImage *src, const core::rect<s32> &srcrect, video::IImage *dest);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
// This file is part of the "Irrlicht Engine".
|
// This file is part of the "Irrlicht Engine".
|
||||||
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
||||||
|
|
||||||
#ifndef __C_INTL_GUI_EDIT_BOX_H_INCLUDED__
|
#pragma once
|
||||||
#define __C_INTL_GUI_EDIT_BOX_H_INCLUDED__
|
|
||||||
|
|
||||||
#include "IrrCompileConfig.h"
|
#include "IrrCompileConfig.h"
|
||||||
//#ifdef _IRR_COMPILE_WITH_GUI_
|
//#ifdef _IRR_COMPILE_WITH_GUI_
|
||||||
@ -182,4 +181,3 @@ namespace gui
|
|||||||
} // end namespace irr
|
} // end namespace irr
|
||||||
|
|
||||||
//#endif // _IRR_COMPILE_WITH_GUI_
|
//#endif // _IRR_COMPILE_WITH_GUI_
|
||||||
#endif // __C_GUI_EDIT_BOX_H_INCLUDED__
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef INVENTORY_HEADER
|
#pragma once
|
||||||
#define INVENTORY_HEADER
|
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "itemdef.h"
|
#include "itemdef.h"
|
||||||
@ -310,5 +309,3 @@ private:
|
|||||||
IItemDefManager *m_itemdef;
|
IItemDefManager *m_itemdef;
|
||||||
bool m_dirty = false;
|
bool m_dirty = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef INVENTORYMANAGER_HEADER
|
#pragma once
|
||||||
#define INVENTORYMANAGER_HEADER
|
|
||||||
|
|
||||||
#include "inventory.h"
|
#include "inventory.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -244,6 +243,3 @@ struct ICraftAction : public InventoryAction
|
|||||||
bool getCraftingResult(Inventory *inv, ItemStack &result,
|
bool getCraftingResult(Inventory *inv, ItemStack &result,
|
||||||
std::vector<ItemStack> &output_replacements,
|
std::vector<ItemStack> &output_replacements,
|
||||||
bool decrementInput, IGameDef *gamedef);
|
bool decrementInput, IGameDef *gamedef);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,13 +17,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRR_AABB3D_HEADER
|
#pragma once
|
||||||
#define IRR_AABB3D_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
|
|
||||||
#include <aabbox3d.h>
|
#include <aabbox3d.h>
|
||||||
|
|
||||||
typedef core::aabbox3d<f32> aabb3f;
|
typedef core::aabbox3d<f32> aabb3f;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRR_V2D_HEADER
|
#pragma once
|
||||||
#define IRR_V2D_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
|
|
||||||
@ -29,5 +28,3 @@ typedef core::vector2d<s16> v2s16;
|
|||||||
typedef core::vector2d<s32> v2s32;
|
typedef core::vector2d<s32> v2s32;
|
||||||
typedef core::vector2d<u32> v2u32;
|
typedef core::vector2d<u32> v2u32;
|
||||||
typedef core::vector2d<f32> v2f32;
|
typedef core::vector2d<f32> v2f32;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRR_V3D_HEADER
|
#pragma once
|
||||||
#define IRR_V3D_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
|
|
||||||
@ -28,5 +27,3 @@ typedef core::vector3df v3f;
|
|||||||
typedef core::vector3d<s16> v3s16;
|
typedef core::vector3d<s16> v3s16;
|
||||||
typedef core::vector3d<u16> v3u16;
|
typedef core::vector3d<u16> v3u16;
|
||||||
typedef core::vector3d<s32> v3s32;
|
typedef core::vector3d<s32> v3s32;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -29,8 +29,7 @@
|
|||||||
john@suckerfreegames.com
|
john@suckerfreegames.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __C_GUI_TTFONT_H_INCLUDED__
|
#pragma once
|
||||||
#define __C_GUI_TTFONT_H_INCLUDED__
|
|
||||||
|
|
||||||
#include <irrlicht.h>
|
#include <irrlicht.h>
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
@ -390,5 +389,3 @@ namespace gui
|
|||||||
|
|
||||||
} // end namespace gui
|
} // end namespace gui
|
||||||
} // end namespace irr
|
} // end namespace irr
|
||||||
|
|
||||||
#endif // __C_GUI_TTFONT_H_INCLUDED__
|
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
john@suckerfreegames.com
|
john@suckerfreegames.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IRR_USTRING_H_INCLUDED__
|
#pragma once
|
||||||
#define __IRR_USTRING_H_INCLUDED__
|
|
||||||
|
|
||||||
#if (__cplusplus > 199711L) || (_MSC_VER >= 1600) || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
#if (__cplusplus > 199711L) || (_MSC_VER >= 1600) || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||||
# define USTRING_CPP0X
|
# define USTRING_CPP0X
|
||||||
@ -3890,5 +3889,3 @@ class hash : public std::unary_function<core::ustring, size_t>
|
|||||||
|
|
||||||
} // end namespace core
|
} // end namespace core
|
||||||
} // end namespace irr
|
} // end namespace irr
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
// This file is part of the "Irrlicht Engine".
|
// This file is part of the "Irrlicht Engine".
|
||||||
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
||||||
|
|
||||||
#ifndef __C_GUI_STATIC_TEXT_H_INCLUDED__
|
#pragma once
|
||||||
#define __C_GUI_STATIC_TEXT_H_INCLUDED__
|
|
||||||
|
|
||||||
#include "IrrCompileConfig.h"
|
#include "IrrCompileConfig.h"
|
||||||
#ifdef _IRR_COMPILE_WITH_GUI_
|
#ifdef _IRR_COMPILE_WITH_GUI_
|
||||||
@ -264,5 +263,3 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // _IRR_COMPILE_WITH_GUI_
|
#endif // _IRR_COMPILE_WITH_GUI_
|
||||||
|
|
||||||
#endif // C_GUI_STATIC_TEXT_H_INCLUDED
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRRLICHTTYPES_HEADER
|
#pragma once
|
||||||
#define IRRLICHTTYPES_HEADER
|
|
||||||
|
|
||||||
/* Ensure that <stdint.h> is included before <irrTypes.h>, unless building on
|
/* Ensure that <stdint.h> is included before <irrTypes.h>, unless building on
|
||||||
* MSVC, to address an irrlicht issue: https://sourceforge.net/p/irrlicht/bugs/433/
|
* MSVC, to address an irrlicht issue: https://sourceforge.net/p/irrlicht/bugs/433/
|
||||||
@ -62,5 +61,3 @@ using namespace irr;
|
|||||||
#define U16_MAX 0xFFFF
|
#define U16_MAX 0xFFFF
|
||||||
#define U32_MAX 0xFFFFFFFF
|
#define U32_MAX 0xFFFFFFFF
|
||||||
#define U64_MAX 0xFFFFFFFFFFFFFFFF
|
#define U64_MAX 0xFFFFFFFFFFFFFFFF
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRRLICHTTYPES_BLOATED_HEADER
|
#pragma once
|
||||||
#define IRRLICHTTYPES_BLOATED_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
|
|
||||||
@ -27,5 +26,3 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include "irr_aabb3d.h"
|
#include "irr_aabb3d.h"
|
||||||
|
|
||||||
#include <SColor.h>
|
#include <SColor.h>
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRRLICHTTYPES_EXTRABLOATED_HEADER
|
#pragma once
|
||||||
#define IRRLICHTTYPES_EXTRABLOATED_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_bloated.h"
|
#include "irrlichttypes_bloated.h"
|
||||||
|
|
||||||
@ -34,5 +33,3 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include <IGUIElement.h>
|
#include <IGUIElement.h>
|
||||||
#include <IGUIEnvironment.h>
|
#include <IGUIEnvironment.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ITEMDEF_HEADER
|
#pragma once
|
||||||
#define ITEMDEF_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -174,5 +173,3 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
IWritableItemDefManager* createItemDefManager();
|
IWritableItemDefManager* createItemDefManager();
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ITEMGROUP_HEADER
|
#pragma once
|
||||||
#define ITEMGROUP_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
@ -32,5 +31,3 @@ static inline int itemgroup_get(const ItemGroupList &groups, const std::string &
|
|||||||
return 0;
|
return 0;
|
||||||
return i->second;
|
return i->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ITEMSTACKMETADATA_HEADER
|
#pragma once
|
||||||
#define ITEMSTACKMETADATA_HEADER
|
|
||||||
|
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
|
|
||||||
@ -31,5 +30,3 @@ public:
|
|||||||
void serialize(std::ostream &os) const;
|
void serialize(std::ostream &os) const;
|
||||||
void deSerialize(std::istream &is);
|
void deSerialize(std::istream &is);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef KEYCODE_HEADER
|
#pragma once
|
||||||
#define KEYCODE_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
#include "Keycodes.h"
|
#include "Keycodes.h"
|
||||||
@ -65,5 +64,3 @@ KeyPress getKeySetting(const char *settingname);
|
|||||||
void clearKeyCache();
|
void clearKeyCache();
|
||||||
|
|
||||||
irr::EKEY_CODE keyname_to_keycode(const char *name);
|
irr::EKEY_CODE keyname_to_keycode(const char *name);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIGHT_HEADER
|
#pragma once
|
||||||
#define LIGHT_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes.h"
|
#include "irrlichttypes.h"
|
||||||
|
|
||||||
@ -124,5 +123,3 @@ inline u8 blend_light(u32 daylight_factor, u8 lightday, u8 lightnight)
|
|||||||
l = LIGHT_SUN;
|
l = LIGHT_SUN;
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LOCALPLAYER_HEADER
|
#pragma once
|
||||||
#define LOCALPLAYER_HEADER
|
|
||||||
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "environment.h"
|
#include "environment.h"
|
||||||
@ -183,5 +182,3 @@ private:
|
|||||||
GenericCAO *m_cao = nullptr;
|
GenericCAO *m_cao = nullptr;
|
||||||
Client *m_client;
|
Client *m_client;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LOG_HEADER
|
#pragma once
|
||||||
#define LOG_HEADER
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
@ -212,6 +211,3 @@ extern std::ostream dstream;
|
|||||||
#define dout_client (*dout_client_ptr)
|
#define dout_client (*dout_client_ptr)
|
||||||
#define derr_client (*derr_client_ptr)
|
#define derr_client (*derr_client_ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAINMENUMANAGER_HEADER
|
#pragma once
|
||||||
#define MAINMENUMANAGER_HEADER
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
All kinds of stuff that needs to be exposed from main.cpp
|
All kinds of stuff that needs to be exposed from main.cpp
|
||||||
@ -168,6 +167,3 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern MainGameCallback *g_gamecallback;
|
extern MainGameCallback *g_gamecallback;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAP_HEADER
|
#pragma once
|
||||||
#define MAP_HEADER
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@ -525,5 +524,3 @@ protected:
|
|||||||
*/
|
*/
|
||||||
std::map<v3s16, u8> m_loaded_blocks;
|
std::map<v3s16, u8> m_loaded_blocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAP_SETTINGS_MANAGER_HEADER
|
#pragma once
|
||||||
#define MAP_SETTINGS_MANAGER_HEADER
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -75,5 +74,3 @@ private:
|
|||||||
Settings *m_map_settings;
|
Settings *m_map_settings;
|
||||||
Settings *m_user_settings;
|
Settings *m_user_settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAPBLOCK_HEADER
|
#pragma once
|
||||||
#define MAPBLOCK_HEADER
|
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
@ -671,5 +670,3 @@ inline void getNodeSectorPosWithOffset(const v2s16 &p, v2s16 &block, v2s16 &offs
|
|||||||
Get a quick string to describe what a block actually contains
|
Get a quick string to describe what a block actually contains
|
||||||
*/
|
*/
|
||||||
std::string analyze_block(MapBlock *block);
|
std::string analyze_block(MapBlock *block);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAPBLOCK_MESH_HEADER
|
#pragma once
|
||||||
#define MAPBLOCK_MESH_HEADER
|
|
||||||
|
|
||||||
#include "irrlichttypes_extrabloated.h"
|
#include "irrlichttypes_extrabloated.h"
|
||||||
#include "client/tile.h"
|
#include "client/tile.h"
|
||||||
@ -267,6 +266,3 @@ void final_color_blend(video::SColor *result,
|
|||||||
// TileFrame vector copy cost very much to client
|
// TileFrame vector copy cost very much to client
|
||||||
void getNodeTileN(MapNode mn, v3s16 p, u8 tileindex, MeshMakeData *data, TileSpec &tile);
|
void getNodeTileN(MapNode mn, v3s16 p, u8 tileindex, MeshMakeData *data, TileSpec &tile);
|
||||||
void getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data, TileSpec &tile);
|
void getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data, TileSpec &tile);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -19,8 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAPGEN_HEADER
|
#pragma once
|
||||||
#define MAPGEN_HEADER
|
|
||||||
|
|
||||||
#include "noise.h"
|
#include "noise.h"
|
||||||
#include "nodedef.h"
|
#include "nodedef.h"
|
||||||
@ -299,5 +298,3 @@ protected:
|
|||||||
float cavern_threshold;
|
float cavern_threshold;
|
||||||
int lava_depth;
|
int lava_depth;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -19,8 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAPGEN_CARPATHIAN_HEADER
|
#pragma once
|
||||||
#define MAPGEN_CARPATHIAN_HEADER
|
|
||||||
|
|
||||||
#include "mapgen.h"
|
#include "mapgen.h"
|
||||||
|
|
||||||
@ -101,5 +100,3 @@ private:
|
|||||||
float terrainLevelAtPoint(s16 x, s16 z);
|
float terrainLevelAtPoint(s16 x, s16 z);
|
||||||
int generateTerrain();
|
int generateTerrain();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
@ -18,8 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MAPGEN_FLAT_HEADER
|
#pragma once
|
||||||
#define MAPGEN_FLAT_HEADER
|
|
||||||
|
|
||||||
#include "mapgen.h"
|
#include "mapgen.h"
|
||||||
|
|
||||||
@ -75,5 +74,3 @@ private:
|
|||||||
float hill_steepness;
|
float hill_steepness;
|
||||||
Noise *noise_terrain;
|
Noise *noise_terrain;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user