summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/StatisticsSerializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorldStorage/StatisticsSerializer.h')
-rw-r--r--src/WorldStorage/StatisticsSerializer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/WorldStorage/StatisticsSerializer.h b/src/WorldStorage/StatisticsSerializer.h
new file mode 100644
index 000000000..1ccc55dbd
--- /dev/null
+++ b/src/WorldStorage/StatisticsSerializer.h
@@ -0,0 +1,30 @@
+
+// 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);
+}