summaryrefslogblamecommitdiffstats
path: root/src/WorldStorage/StatisticsSerializer.h
blob: 1ccc55dbde62cd2b27131a3e1978c0085674a9f7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
 
                         








                                                                             



 
                         

                               



 
                              
 
                                                
                                                                                                       
 
                                                
                                                                                                             
 

// StatisticsSerializer.h

// Declares the cStatSerializer class that is used for saving stats into JSON





#pragma once





struct StatisticsManager;
namespace Json { class Value; }





namespace StatisticsSerializer
{
	/* Try to load the player statistics. */
	void Load(StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);

	/* Try to save the player statistics. */
	void Save(const StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);
}