1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +02:00

Formatting

This commit is contained in:
AlexVinS 2015-08-18 02:21:35 +03:00 committed by AlexVinS
parent 3af255d1b9
commit f5b348a1d1
3 changed files with 202 additions and 202 deletions

View File

@ -17,9 +17,10 @@
#include "../CModHandler.h"
#include "../VCMI_Lib.h"
namespace TriggeredEventsDetail{
static const std::array<std::string, 12> conditionNames = {
namespace TriggeredEventsDetail
{
static const std::array<std::string, 12> conditionNames =
{
"haveArtifact", "haveCreatures", "haveResources", "haveBuilding",
"control", "destroy", "transport", "daysPassed",
"isHuman", "daysWithoutTown", "standardWin", "constValue"
@ -83,10 +84,10 @@ static JsonNode ConditionToJson(const EventCondition& event)
return std::move(json);
}
}//namespace TriggeredEventsDetail
namespace TerrainDetail{
namespace TerrainDetail
{
static const std::array<std::string, 10> terrainCodes =
{
"dt", "sa", "gr", "sn", "sw", "rg", "sb", "lv", "wt", "rc"
@ -105,7 +106,6 @@ namespace TerrainDetail{
{
'_', '-', '|', '+'
};
}
///CMapFormatJson

View File

@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(CMapFormatVCMI_Simple)
#if 1
{
auto path = VCMIDirs::get().userDataPath()/"temp.zip";
auto path = VCMIDirs::get().userDataPath()/"test.zip";
boost::filesystem::remove(path);
boost::filesystem::ofstream tmp(path, boost::filesystem::ofstream::binary);