mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Code style: serialize everything on own lines for easier debugging (#357)
This commit is contained in:
@@ -43,7 +43,10 @@ struct DLL_LINKAGE RandomMapInfo
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & value & mapLimit & zoneLimit & rarity;
|
||||
h & value;
|
||||
h & mapLimit;
|
||||
h & zoneLimit;
|
||||
h & rarity;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -159,10 +162,15 @@ public:
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & type & subtype & templates & rmgInfo & objectName;
|
||||
h & type;
|
||||
h & subtype;
|
||||
h & templates;
|
||||
h & rmgInfo;
|
||||
h & objectName;
|
||||
if(version >= 759)
|
||||
{
|
||||
h & typeName & subTypeName;
|
||||
h & typeName;
|
||||
h & subTypeName;
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -186,10 +194,14 @@ class DLL_LINKAGE CObjectClassesHandler : public IHandlerBase
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & name & handlerName & base & subObjects;
|
||||
h & name;
|
||||
h & handlerName;
|
||||
h & base;
|
||||
h & subObjects;
|
||||
if(version >= 759)
|
||||
{
|
||||
h & identifier & subIds;
|
||||
h & identifier;
|
||||
h & subIds;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user