1
0
Fork 0
cuberite-2a/src/WorldStorage/StatisticsSerializer.h

31 lines
512 B
C
Raw Normal View History

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
struct StatisticsManager;
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
{
/* Try to load the player statistics. */
void Load(StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);
2014-05-11 11:57:06 +00:00
/* Try to save the player statistics. */
void Save(const StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);
2020-08-20 22:27:08 +00:00
}