1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 10:45:27 +02:00

Reduce include count in headers

This commit is contained in:
SmallJoker
2024-09-02 16:09:32 +02:00
committed by GitHub
parent b8b99d5cf1
commit 0c4f03d9a5
39 changed files with 163 additions and 62 deletions

View File

@@ -17,16 +17,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "client/texturesource.h"
#include "client/fontengine.h"
#include "debug.h"
#include "irrlichttypes_extrabloated.h"
#include "irrlichttypes_bloated.h"
#include "util/string.h"
#include <algorithm>
#include <array>
#include <vector>
#pragma once
class StyleSpec
{

View File

@@ -19,6 +19,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "client/guiscalingfilter.h"
#include "log.h"
#include "client/texturesource.h"
#include <ITexture.h>
GUIBackgroundImage::GUIBackgroundImage(gui::IGUIEnvironment *env,
gui::IGUIElement *parent, s32 id, const core::rect<s32> &rectangle,

View File

@@ -38,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <IGUIImage.h>
#include <IAnimatedMeshSceneNode.h>
#include "client/renderingengine.h"
#include "client/joystick_controller.h"
#include "log.h"
#include "client/hud.h" // drawItemStack
#include "filesys.h"

View File

@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <stack>
#include <unordered_set>
#include "irrlichttypes_extrabloated.h"
#include "irrlichttypes_bloated.h"
#include "irr_ptr.h"
#include "inventory.h"
#include "inventorymanager.h"
@@ -32,8 +32,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiInventoryList.h"
#include "guiScrollBar.h"
#include "guiTable.h"
#include "network/networkprotocol.h"
#include "client/joystick_controller.h"
#include "util/string.h"
#include "util/enriched_string.h"
#include "StyleSpec.h"
@@ -45,6 +43,7 @@ class ISimpleTextureSource;
class Client;
class GUIScrollContainer;
class ISoundManager;
class JoystickController;
enum FormspecFieldType {
f_Button,

View File

@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiHyperText.h"
#include "guiScrollBar.h"
#include "client/fontengine.h"
#include "client/hud.h" // drawItemStack
#include "IVideoDriver.h"
#include "client/client.h"
#include "client/renderingengine.h"

View File

@@ -19,7 +19,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiItemImage.h"
#include "client/client.h"
#include "client/hud.h" // drawItemStack
#include "inventory.h"
#include <IGUIFont.h>
GUIItemImage::GUIItemImage(gui::IGUIEnvironment *env, gui::IGUIElement *parent,
s32 id, const core::rect<s32> &rectangle, const std::string &item_name,

View File

@@ -18,6 +18,7 @@
*/
#include "guiPathSelectMenu.h"
#include "guiFormSpecMenu.h" //required because of TextDest only !!!
GUIFileSelectMenu::GUIFileSelectMenu(gui::IGUIEnvironment* env,
gui::IGUIElement* parent, s32 id, IMenuManager *menumgr,

View File

@@ -23,7 +23,8 @@
#include "modalMenu.h"
#include "IGUIFileOpenDialog.h"
#include "guiFormSpecMenu.h" //required because of TextDest only !!!
struct TextDest;
class GUIFileSelectMenu : public GUIModalMenu
{