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










                                                                             



 
                         

                               



 
                        
 
                                                
                                                                                                       
 
                                                
                                                                                                             
 

// StatSerializer.h

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





#pragma once





struct StatisticsManager;
namespace Json { class Value; }





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