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

32 lines
492 B
C
Raw Normal View History

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