2014-05-11 11:57:06 +00:00
|
|
|
|
|
|
|
// StatSerializer.h
|
|
|
|
|
|
|
|
// Declares the cStatSerializer class that is used for saving stats into JSON
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// fwd:
|
|
|
|
class cStatManager;
|
2020-08-12 08:54:36 +00:00
|
|
|
namespace Json { class Value; }
|
|
|
|
|
2014-05-11 11:57:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-20 22:27:08 +00:00
|
|
|
namespace StatSerializer
|
2014-05-11 11:57:06 +00:00
|
|
|
{
|
2020-08-12 08:54:36 +00:00
|
|
|
/* Try to load the player statistics. */
|
2020-08-21 17:15:34 +00:00
|
|
|
void Load(cStatManager & Manager, const std::string & WorldPath, std::string && FileName);
|
2014-05-11 11:57:06 +00:00
|
|
|
|
2020-08-12 08:54:36 +00:00
|
|
|
/* Try to save the player statistics. */
|
2020-08-21 17:15:34 +00:00
|
|
|
void Save(const cStatManager & Manager, const std::string & WorldPath, std::string && FileName);
|
2020-08-20 22:27:08 +00:00
|
|
|
}
|