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

32 lines
486 B
C
Raw Normal View History

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