Skip to content

Commit 98e36d7

Browse files
committedJan 8, 2017
Move ServerEnvironment to dedicated cpp/header files
* also cleanup some unneeded inclusions
1 parent eb2c19b commit 98e36d7

14 files changed

+2600
-2555
lines changed
 

‎src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ set(common_SRCS
452452
rollback_interface.cpp
453453
serialization.cpp
454454
server.cpp
455+
serverenvironment.cpp
455456
serverlist.cpp
456457
serverobject.cpp
457458
settings.cpp

‎src/clientiface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2626
#include "settings.h"
2727
#include "mapblock.h"
2828
#include "network/connection.h"
29-
#include "environment.h"
29+
#include "serverenvironment.h"
3030
#include "map.h"
3131
#include "emerge.h"
3232
#include "content_sao.h" // TODO this is used for cleanup of only

‎src/collision.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2323
#include "nodedef.h"
2424
#include "gamedef.h"
2525
#include "clientenvironment.h"
26+
#include "serverenvironment.h"
2627
#include "serverobject.h"
2728
#include "profiler.h"
2829

‎src/environment.cpp

-2,149
Large diffs are not rendered by default.

‎src/environment.h

-397
Large diffs are not rendered by default.

‎src/inventorymanager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1919

2020
#include "inventorymanager.h"
2121
#include "log.h"
22-
#include "environment.h"
22+
#include "serverenvironment.h"
2323
#include "scripting_game.h"
2424
#include "serverobject.h"
2525
#include "settings.h"

‎src/pathfinder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2323
/******************************************************************************/
2424

2525
#include "pathfinder.h"
26-
#include "environment.h"
26+
#include "serverenvironment.h"
2727
#include "gamedef.h"
2828
#include "nodedef.h"
2929
#include "map.h"

‎src/script/lua_api/l_env.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2121
#define L_ENV_H_
2222

2323
#include "lua_api/l_base.h"
24-
#include "environment.h"
24+
#include "serverenvironment.h"
2525

2626
class ModApiEnvMod : public ModApiBase {
2727
private:

‎src/script/lua_api/l_nodemeta.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2222
#include "lua_api/l_inventory.h"
2323
#include "common/c_converter.h"
2424
#include "common/c_content.h"
25-
#include "environment.h"
25+
#include "serverenvironment.h"
2626
#include "map.h"
2727
#include "gamedef.h"
2828
#include "nodemetadata.h"

‎src/script/lua_api/l_nodetimer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1919

2020
#include "lua_api/l_nodetimer.h"
2121
#include "lua_api/l_internal.h"
22-
#include "environment.h"
22+
#include "serverenvironment.h"
2323
#include "map.h"
2424

2525

‎src/server.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3232
#include "util/numeric.h"
3333
#include "util/thread.h"
3434
#include "util/basic_macros.h"
35-
#include "environment.h"
35+
#include "serverenvironment.h"
3636
#include "chat_interface.h"
3737
#include "clientiface.h"
3838
#include "remoteplayer.h"

‎src/serverenvironment.cpp

+2,167
Large diffs are not rendered by default.

‎src/serverenvironment.h

+423
Large diffs are not rendered by default.

‎src/treegen.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2121
#include <stack>
2222
#include "util/pointer.h"
2323
#include "util/numeric.h"
24-
#include "util/mathconstants.h"
2524
#include "map.h"
26-
#include "environment.h"
25+
#include "serverenvironment.h"
2726
#include "nodedef.h"
2827
#include "treegen.h"
2928

0 commit comments

Comments
 (0)
Please sign in to comment.