1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* splitted CGameState into general game state and battle game state

* added missing fields to serialize in CHero
This commit is contained in:
mateuszb
2010-12-25 19:23:30 +00:00
parent a82469a205
commit b3fd14b524
21 changed files with 2178 additions and 2086 deletions

View File

@@ -26,6 +26,10 @@ struct SSpecialtyInfo
si32 val;
si32 subtype;
si32 additionalinfo;
template <typename Handler> void serialize(Handler &h, const int version)
{
h & type & val & subtype & additionalinfo;
}
};
class DLL_EXPORT CHero
@@ -52,7 +56,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & name & ID & lowStack & highStack & refTypeStack & heroType & startingSpell & heroClass;
h & name & ID & lowStack & highStack & refTypeStack & heroClass & heroType & secSkillsInit & spec & startingSpell & sex;
}
};