summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/StatSerializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorldStorage/StatSerializer.h')
-rw-r--r--src/WorldStorage/StatSerializer.h24
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);
+}