From 34bf5c0d9db195edf8b576d1273876966cf650b2 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 4 May 2021 16:11:56 +0100 Subject: Rename files to match code --- src/WorldStorage/StatisticsSerializer.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/WorldStorage/StatisticsSerializer.h (limited to 'src/WorldStorage/StatisticsSerializer.h') 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); +} -- cgit v1.2.3