2014-05-11 11:57:06 +00:00
|
|
|
|
2021-05-04 15:11:56 +00:00
|
|
|
// StatisticsSerializer.h
|
2014-05-11 11:57:06 +00:00
|
|
|
|
|
|
|
// Declares the cStatSerializer class that is used for saving stats into JSON
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 20:07:09 +00:00
|
|
|
struct StatisticsManager;
|
2020-08-12 08:54:36 +00:00
|
|
|
namespace Json { class Value; }
|
|
|
|
|
2014-05-11 11:57:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-04 15:11:56 +00:00
|
|
|
namespace StatisticsSerializer
|
2014-05-11 11:57:06 +00:00
|
|
|
{
|
2020-08-12 08:54:36 +00:00
|
|
|
/* Try to load the player statistics. */
|
2021-05-03 20:07:09 +00:00
|
|
|
void Load(StatisticsManager & 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. */
|
2021-05-03 20:07:09 +00:00
|
|
|
void Save(const StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);
|
2020-08-20 22:27:08 +00:00
|
|
|
}
|