summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/StatSerializer.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-19 14:09:39 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-19 21:45:27 +0200
commit963ec77575cfbdebc5a172789d66b25a1f44e653 (patch)
tree96c17895d47f742796a8e15a0fa36ee4709b756b /src/WorldStorage/StatSerializer.h
parentAdd FileStream wrapper (diff)
downloadcuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.tar
cuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.tar.gz
cuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.tar.bz2
cuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.tar.lz
cuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.tar.xz
cuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.tar.zst
cuberite-963ec77575cfbdebc5a172789d66b25a1f44e653.zip
Diffstat (limited to 'src/WorldStorage/StatSerializer.h')
-rw-r--r--src/WorldStorage/StatSerializer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/WorldStorage/StatSerializer.h b/src/WorldStorage/StatSerializer.h
index e6a5bd325..efbdbe4e5 100644
--- a/src/WorldStorage/StatSerializer.h
+++ b/src/WorldStorage/StatSerializer.h
@@ -25,7 +25,7 @@ class cStatSerializer
{
public:
- cStatSerializer(cStatManager & a_Manager, const AString & a_WorldName, const AString & a_FileName);
+ cStatSerializer(cStatManager & Manager, const std::string & WorldPath, std::string FileName);
/* Try to load the player statistics. */
void Load(void);
@@ -37,9 +37,11 @@ private:
void SaveStatToJSON(Json::Value & a_Out);
+ void LoadLegacyFromJSON(const Json::Value & In);
+
void LoadCustomStatFromJSON(const Json::Value & a_In);
cStatManager & m_Manager;
- AString m_Path;
+ std::string m_Path;
} ;