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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user