1
0

Add statistics upgrade mapping

This commit is contained in:
Tiger Wang
2020-08-19 13:09:39 +01:00
parent f23402dacd
commit 963ec77575
2 changed files with 122 additions and 13 deletions

View File

@@ -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;
} ;