From fd3afbced5410639325e730d5710b8b5039b320e Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Fri, 18 Aug 2017 19:25:07 +0200 Subject: Optimize headers (part 2) (#6272) * Optimize headers (part 2) * less debug.h in headers * less remoteplayer.h for everybody * Cleanup (part 2) * camera.h: mesh.h * mapgen.h: mapnode.h * serverenvironment.h: mapblock.h * nodedef.h: shader.h --- src/script/lua_api/l_env.cpp | 2 ++ src/script/lua_api/l_inventory.cpp | 2 +- src/script/lua_api/l_nodemeta.cpp | 1 + src/script/lua_api/l_object.cpp | 1 + src/script/lua_api/l_server.cpp | 2 +- src/script/lua_api/l_vmanip.cpp | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/script/lua_api') diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 9a2ce334b..1b1f96389 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include "scripting_server.h" #include "environment.h" +#include "mapblock.h" #include "server.h" #include "nodedef.h" #include "daynightratio.h" @@ -37,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "emerge.h" #include "pathfinder.h" #include "face_position_cache.h" +#include "remoteplayer.h" #ifndef SERVER #include "client.h" #endif diff --git a/src/script/lua_api/l_inventory.cpp b/src/script/lua_api/l_inventory.cpp index e92197c14..aac5eed8e 100644 --- a/src/script/lua_api/l_inventory.cpp +++ b/src/script/lua_api/l_inventory.cpp @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common/c_converter.h" #include "common/c_content.h" #include "server.h" -#include "player.h" +#include "remoteplayer.h" /* InvRef diff --git a/src/script/lua_api/l_nodemeta.cpp b/src/script/lua_api/l_nodemeta.cpp index c446a8f07..d1f314079 100644 --- a/src/script/lua_api/l_nodemeta.cpp +++ b/src/script/lua_api/l_nodemeta.cpp @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common/c_content.h" #include "serverenvironment.h" #include "map.h" +#include "mapblock.h" #include "server.h" /* diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index 7d2eba8e2..9ddbc3e41 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "tool.h" #include "serverobject.h" #include "content_sao.h" +#include "remoteplayer.h" #include "server.h" #include "hud.h" #include "scripting_server.h" diff --git a/src/script/lua_api/l_server.cpp b/src/script/lua_api/l_server.cpp index e60d1d2d6..d99f46cd1 100644 --- a/src/script/lua_api/l_server.cpp +++ b/src/script/lua_api/l_server.cpp @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "cpp_api/s_base.h" #include "server.h" #include "environment.h" -#include "player.h" +#include "remoteplayer.h" #include "log.h" #include diff --git a/src/script/lua_api/l_vmanip.cpp b/src/script/lua_api/l_vmanip.cpp index 9e482873b..1e973703c 100644 --- a/src/script/lua_api/l_vmanip.cpp +++ b/src/script/lua_api/l_vmanip.cpp @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "emerge.h" #include "environment.h" #include "map.h" +#include "mapblock.h" #include "server.h" #include "mapgen.h" #include "voxelalgorithms.h" -- cgit v1.2.3