1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

More missing serialization items.

This commit is contained in:
Michał W. Urbańczyk 2013-05-20 17:25:19 +00:00
parent 096e1230ce
commit c920f29c45
3 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & identifier & name & faction;// & aggression;
h & identifier & name & faction & id;// & aggression;
h & primarySkillInitial & primarySkillLowLevel;
h & primarySkillHighLevel & secSkillProbability;
h & selectionProbability;

View File

@ -58,7 +58,7 @@ si32 CBuilding::getDistance(BuildingID buildID) const
CFaction::CFaction()
{
town = nullptr;
}
CFaction::~CFaction()

View File

@ -119,7 +119,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & name & index & nativeTerrain & creatureBg120 & creatureBg130 & puzzleMap;
h & name & index & nativeTerrain & alignment & commander & town & creatureBg120 & creatureBg130 & puzzleMap;
}
};
@ -142,7 +142,7 @@ public:
std::vector<std::string> dwellings; //defs for adventure map dwellings for new towns, [0] means tier 1 creatures etc.
std::vector<std::string> dwellingNames;
// should be removed at least from configs in favour of auto-detection
// should be removed at least from configs in favor of auto-detection
std::map<int,int> hordeLvl; //[0] - first horde building creature level; [1] - second horde building (-1 if not present)
ui32 mageLevel; //max available mage guild level
ui16 primaryRes;