1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Code style: serialize everything on own lines for easier debugging (#357)

This commit is contained in:
ArseniyShestakov
2017-07-31 16:35:42 +03:00
committed by GitHub
parent 980926a7bd
commit 9d9c026c85
49 changed files with 1207 additions and 326 deletions

View File

@@ -57,8 +57,14 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & numOfGrants & dayOfWeek & minLevel & resources;
h & primary & secondary & artifacts & creatures;
h & numOfGrants;
h & dayOfWeek;
h & minLevel;
h & resources;
h & primary;
h & secondary;
h & artifacts;
h & creatures;
}
};
@@ -121,11 +127,21 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & resources & extraComponents & removeObject;
h & manaPercentage & movePercentage;
h & gainedExp & gainedLevels & manaDiff & movePoints;
h & primary & secondary & bonuses;
h & artifacts & spells & creatures;
h & resources;
h & extraComponents;
h & removeObject;
h & manaPercentage;
h & movePercentage;
h & gainedExp;
h & gainedLevels;
h & manaDiff;
h & movePoints;
h & primary;
h & secondary;
h & bonuses;
h & artifacts;
h & spells;
h & creatures;
}
};
@@ -151,7 +167,11 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & limiter & reward & message & selectChance & numOfGrants;
h & limiter;
h & reward;
h & message;
h & selectChance;
h & numOfGrants;
}
};
@@ -244,9 +264,16 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & static_cast<CArmedInstance&>(*this);
h & info & canRefuse & resetDuration;
h & onSelect & onVisited & onEmpty & visitMode;
h & soundID & selectMode & selectedReward;
h & info;
h & canRefuse;
h & resetDuration;
h & onSelect;
h & onVisited;
h & onEmpty;
h & visitMode;
h & soundID;
h & selectMode;
h & selectedReward;
}
// for configuration/object setup