Remove one level of indent in statistics serialiser
This commit is contained in:
parent
de329dc5ad
commit
c6de5e9bc5
@ -13,8 +13,6 @@
|
||||
|
||||
|
||||
|
||||
namespace StatisticsSerializer
|
||||
{
|
||||
static auto MakeStatisticsDirectory(const std::string & WorldPath, std::string && FileName)
|
||||
{
|
||||
// Even though stats are shared between worlds, they are (usually) saved
|
||||
@ -84,7 +82,7 @@ namespace StatisticsSerializer
|
||||
|
||||
|
||||
|
||||
void Load(StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName)
|
||||
void StatisticsSerializer::Load(StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName)
|
||||
{
|
||||
Json::Value Root;
|
||||
InputFileStream(MakeStatisticsDirectory(WorldPath, std::move(FileName))) >> Root;
|
||||
@ -96,7 +94,7 @@ namespace StatisticsSerializer
|
||||
|
||||
|
||||
|
||||
void Save(const StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName)
|
||||
void StatisticsSerializer::Save(const StatisticsManager & Manager, const std::string & WorldPath, std::string && FileName)
|
||||
{
|
||||
Json::Value Root;
|
||||
|
||||
@ -105,4 +103,3 @@ namespace StatisticsSerializer
|
||||
|
||||
OutputFileStream(MakeStatisticsDirectory(WorldPath, std::move(FileName))) << Root;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user