Cuberite
A lightweight, fast and extensible game server for Minecraft
StatisticsSerializer.h
Go to the documentation of this file.
1 
2 // StatisticsSerializer.h
3 
4 // Declares the cStatSerializer class that is used for saving stats into JSON
5 
6 
7 
8 
9 
10 #pragma once
11 
12 
13 
14 
15 
16 struct StatisticsManager;
17 namespace Json { class Value; }
18 
19 
20 
21 
22 
24 {
25  /* Try to load the player statistics. */
26  void Load(StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);
27 
28  /* Try to save the player statistics. */
29  void Save(const StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName);
30 }
Definition: Inventory.h:11
void Save(const StatisticsManager &Manager, const std::string &WorldPath, std::string &&FileName)
void Load(StatisticsManager &Manager, const std::string &WorldPath, std::string &&FileName)
Class that manages the statistics and achievements of a single player.