Skip to content

Commit

Permalink
Move AreaStore to util
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Mar 7, 2016
1 parent f021db7 commit 0079887
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion build/android/jni/Android.mk
Expand Up @@ -112,7 +112,6 @@ LOCAL_C_INCLUDES := \
deps/sqlite/

LOCAL_SRC_FILES := \
jni/src/areastore.cpp \
jni/src/ban.cpp \
jni/src/camera.cpp \
jni/src/cavegen.cpp \
Expand Down Expand Up @@ -221,6 +220,7 @@ LOCAL_SRC_FILES := \
jni/src/version.cpp \
jni/src/voxel.cpp \
jni/src/voxelalgorithms.cpp \
jni/src/util/areastore.cpp \
jni/src/util/auth.cpp \
jni/src/util/base64.cpp \
jni/src/util/directiontables.cpp \
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -348,7 +348,6 @@ add_subdirectory(unittest)
add_subdirectory(util)

set(common_SRCS
areastore.cpp
ban.cpp
cavegen.cpp
chat.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/script/lua_api/l_areastore.cpp
Expand Up @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "common/c_converter.h"
#include "cpp_api/s_security.h"
#include "irr_v3d.h"
#include "areastore.h"
#include "util/areastore.h"
#include "filesys.h"
#ifndef ANDROID
#include "cmake_config.h"
Expand Down
13 changes: 6 additions & 7 deletions src/script/lua_api/l_areastore.h
Expand Up @@ -17,15 +17,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef L_AREASTORE_H_
#define L_AREASTORE_H_
#ifndef L_AREA_STORE_H_
#define L_AREA_STORE_H_

#include "lua_api/l_base.h"
#include "areastore.h"

/*
AreaStore
*/

class AreaStore;

class LuaAreaStore : public ModApiBase {
private:

Expand Down Expand Up @@ -66,4 +65,4 @@ class LuaAreaStore : public ModApiBase {
static void Register(lua_State *L);
};

#endif /* L_AREASTORE_H_ */
#endif // L_AREA_STORE_H_
1 change: 0 additions & 1 deletion src/script/lua_api/l_util.cpp
Expand Up @@ -25,7 +25,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serialization.h"
#include "json/json.h"
#include "cpp_api/s_security.h"
#include "areastore.h"
#include "porting.h"
#include "debug.h"
#include "log.h"
Expand Down
2 changes: 1 addition & 1 deletion src/unittest/test_areastore.cpp
Expand Up @@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "test.h"

#include "areastore.h"
#include "util/areastore.h"

class TestAreaStore : public TestBase {
public:
Expand Down
1 change: 1 addition & 0 deletions src/util/CMakeLists.txt
@@ -1,4 +1,5 @@
set(UTIL_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/areastore.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auth.cpp
${CMAKE_CURRENT_SOURCE_DIR}/base64.cpp
${CMAKE_CURRENT_SOURCE_DIR}/directiontables.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/areastore.cpp → src/util/areastore.cpp
Expand Up @@ -17,7 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "areastore.h"
#include "util/areastore.h"
#include "util/serialize.h"
#include "util/container.h"

Expand Down
6 changes: 3 additions & 3 deletions src/areastore.h → src/util/areastore.h
Expand Up @@ -17,8 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef AREASTORE_H_
#define AREASTORE_H_
#ifndef AREA_STORE_H_
#define AREA_STORE_H_

#include "irr_v3d.h"
#include "noise.h" // for PcgRandom
Expand Down Expand Up @@ -174,4 +174,4 @@ class SpatialAreaStore : public AreaStore {

#endif

#endif /* AREASTORE_H_ */
#endif // AREA_STORE_H_

0 comments on commit 0079887

Please sign in to comment.