summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-05-04 17:11:56 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-05-04 17:11:56 +0200
commit34bf5c0d9db195edf8b576d1273876966cf650b2 (patch)
treeb9682f8226fef09d3625089ba06235f93ce5c976 /src/WorldStorage
parentAdd player statistics to API (#5193) (diff)
downloadcuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar
cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.gz
cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.bz2
cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.lz
cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.xz
cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.zst
cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.zip
Diffstat (limited to 'src/WorldStorage')
-rw-r--r--src/WorldStorage/CMakeLists.txt4
-rw-r--r--src/WorldStorage/NamespaceSerializer.h2
-rw-r--r--src/WorldStorage/StatisticsSerializer.cpp (renamed from src/WorldStorage/StatSerializer.cpp)8
-rw-r--r--src/WorldStorage/StatisticsSerializer.h (renamed from src/WorldStorage/StatSerializer.h)4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/WorldStorage/CMakeLists.txt b/src/WorldStorage/CMakeLists.txt
index af363c97f..13675c5e1 100644
--- a/src/WorldStorage/CMakeLists.txt
+++ b/src/WorldStorage/CMakeLists.txt
@@ -9,7 +9,7 @@ target_sources(
NBTChunkSerializer.cpp
SchematicFileSerializer.cpp
ScoreboardSerializer.cpp
- StatSerializer.cpp
+ StatisticsSerializer.cpp
WSSAnvil.cpp
WorldStorage.cpp
@@ -21,7 +21,7 @@ target_sources(
NBTChunkSerializer.h
SchematicFileSerializer.h
ScoreboardSerializer.h
- StatSerializer.h
+ StatisticsSerializer.h
WSSAnvil.h
WorldStorage.h
)
diff --git a/src/WorldStorage/NamespaceSerializer.h b/src/WorldStorage/NamespaceSerializer.h
index c521db201..6ec6bc6f7 100644
--- a/src/WorldStorage/NamespaceSerializer.h
+++ b/src/WorldStorage/NamespaceSerializer.h
@@ -2,7 +2,7 @@
#include "Defines.h"
#include "Mobs/MonsterTypes.h"
-#include "Registries/Statistics.h"
+#include "Registries/CustomStatistics.h"
namespace NamespaceSerializer
{
diff --git a/src/WorldStorage/StatSerializer.cpp b/src/WorldStorage/StatisticsSerializer.cpp
index 5432f6ab9..34621d81c 100644
--- a/src/WorldStorage/StatSerializer.cpp
+++ b/src/WorldStorage/StatisticsSerializer.cpp
@@ -1,10 +1,10 @@
-// StatSerializer.cpp
+// StatisticsSerializer.cpp
#include "Globals.h"
-#include "../Statistics.h"
-#include "StatSerializer.h"
+#include "StatisticsManager.h"
+#include "StatisticsSerializer.h"
#include "NamespaceSerializer.h"
#include <json/json.h>
@@ -13,7 +13,7 @@
-namespace StatSerializer
+namespace StatisticsSerializer
{
static auto MakeStatisticsDirectory(const std::string & WorldPath, std::string && FileName)
{
diff --git a/src/WorldStorage/StatSerializer.h b/src/WorldStorage/StatisticsSerializer.h
index a178db79c..1ccc55dbd 100644
--- a/src/WorldStorage/StatSerializer.h
+++ b/src/WorldStorage/StatisticsSerializer.h
@@ -1,5 +1,5 @@
-// StatSerializer.h
+// StatisticsSerializer.h
// Declares the cStatSerializer class that is used for saving stats into JSON
@@ -20,7 +20,7 @@ namespace Json { class Value; }
-namespace StatSerializer
+namespace StatisticsSerializer
{
/* Try to load the player statistics. */
void Load(StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);