1
0
cuberite-2a/src/WorldStorage/StatSerializer.h

32 lines
492 B
C
Raw Normal View History

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;
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
{
/* 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
/* 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
}