diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-21 00:27:08 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-21 01:53:10 +0200 |
commit | e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce (patch) | |
tree | a53e6c1eca0d223ebc016a541e9ec1d70273faee /src/WorldStorage/StatSerializer.h | |
parent | Consolidate various Chunk serialisers under one roof (diff) | |
download | cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.tar cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.tar.gz cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.tar.bz2 cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.tar.lz cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.tar.xz cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.tar.zst cuberite-e23dcffaff5ce3b3da1e44fba21c03e66f48c1ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/StatSerializer.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/WorldStorage/StatSerializer.h b/src/WorldStorage/StatSerializer.h index efbdbe4e5..59b502425 100644 --- a/src/WorldStorage/StatSerializer.h +++ b/src/WorldStorage/StatSerializer.h @@ -21,27 +21,11 @@ namespace Json { class Value; } -class cStatSerializer +namespace StatSerializer { -public: - - cStatSerializer(cStatManager & Manager, const std::string & WorldPath, std::string FileName); - /* Try to load the player statistics. */ - void Load(void); + void Load(cStatManager & Manager, const std::string & WorldPath, std::string FileName); /* Try to save the player statistics. */ - void Save(void); - -private: - - void SaveStatToJSON(Json::Value & a_Out); - - void LoadLegacyFromJSON(const Json::Value & In); - - void LoadCustomStatFromJSON(const Json::Value & a_In); - - cStatManager & m_Manager; - - std::string m_Path; -} ; + void Save(const cStatManager & Manager, const std::string & WorldPath, std::string FileName); +} |