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