1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00

Use COutputStream in CMapSaverJson

This commit is contained in:
AlexVinS
2015-08-08 18:35:54 +03:00
committed by AlexVinS
parent c965f9d02d
commit 7d16585f89
2 changed files with 24 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
#include "StdInc.h"
#include "MapFormatJson.h"
#include "../filesystem/CInputStream.h"
#include "../filesystem/COutputStream.h"
#include "CMap.h"
#include "../CModHandler.h"
#include "../VCMI_Lib.h"
@@ -182,8 +184,15 @@ void CMapLoaderJson::readPlayerInfo()
}
///CMapSaverJson
void CMapSaverJson::saveMap(const std::unique_ptr<CMap>& map)
CMapSaverJson::CMapSaverJson(COutputStream * stream):
output(stream)
{
}
void CMapSaverJson::saveMap(const std::unique_ptr<CMap>& map)
{
assert(0); // Not implemented
}