|
@@ -123,25 +123,6 @@ public:
|
|
|
|
|
|
void addNewBonus(const std::shared_ptr<Bonus> & b, BonusList & bonusList) const;
|
|
|
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & modScope;
|
|
|
- h & identifier;
|
|
|
- h & town;
|
|
|
- h & bid;
|
|
|
- h & resources;
|
|
|
- h & produce;
|
|
|
- h & requirements;
|
|
|
- h & upgrade;
|
|
|
- h & mode;
|
|
|
- h & subId;
|
|
|
- h & height;
|
|
|
- h & overrideBids;
|
|
|
- h & buildingBonuses;
|
|
|
- h & onVisitBonuses;
|
|
|
- h & rewardableObjectInfo;
|
|
|
- }
|
|
|
-
|
|
|
friend class CTownHandler;
|
|
|
};
|
|
|
|
|
@@ -160,17 +141,6 @@ struct DLL_LINKAGE CStructure
|
|
|
std::string identifier;
|
|
|
|
|
|
bool hiddenUpgrade; // used only if "building" is upgrade, if true - structure on town screen will behave exactly like parent (mouse clicks, hover texts, etc)
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & pos;
|
|
|
- h & defName;
|
|
|
- h & borderName;
|
|
|
- h & areaName;
|
|
|
- h & identifier;
|
|
|
- h & building;
|
|
|
- h & buildable;
|
|
|
- h & hiddenUpgrade;
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
struct DLL_LINKAGE SPuzzleInfo
|
|
@@ -179,15 +149,6 @@ struct DLL_LINKAGE SPuzzleInfo
|
|
|
si16 x, y; //position
|
|
|
ui16 whenUncovered; //determines the sequnce of discovering (the lesser it is the sooner puzzle will be discovered)
|
|
|
ImagePath filename; //file with graphic of this puzzle
|
|
|
-
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & number;
|
|
|
- h & x;
|
|
|
- h & y;
|
|
|
- h & whenUncovered;
|
|
|
- h & filename;
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
class DLL_LINKAGE CFaction : public Faction
|
|
@@ -238,20 +199,6 @@ public:
|
|
|
|
|
|
void updateFrom(const JsonNode & data);
|
|
|
void serializeJson(JsonSerializeFormat & handler);
|
|
|
-
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & modScope;
|
|
|
- h & identifier;
|
|
|
- h & index;
|
|
|
- h & nativeTerrain;
|
|
|
- h & boatType;
|
|
|
- h & alignment;
|
|
|
- h & town;
|
|
|
- h & creatureBg120;
|
|
|
- h & creatureBg130;
|
|
|
- h & puzzleMap;
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
class DLL_LINKAGE CTown
|
|
@@ -323,44 +270,7 @@ public:
|
|
|
std::string towerIconSmall;
|
|
|
std::string towerIconLarge;
|
|
|
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & icons;
|
|
|
- h & iconSmall;
|
|
|
- h & iconLarge;
|
|
|
- h & tavernVideo;
|
|
|
- h & musicTheme;
|
|
|
- h & townBackground;
|
|
|
- h & guildBackground;
|
|
|
- h & guildWindow;
|
|
|
- h & buildingsIcons;
|
|
|
- h & hallBackground;
|
|
|
- h & hallSlots;
|
|
|
- h & structures;
|
|
|
- h & siegePrefix;
|
|
|
- h & siegePositions;
|
|
|
- h & siegeShooter;
|
|
|
- h & towerIconSmall;
|
|
|
- h & towerIconLarge;
|
|
|
- }
|
|
|
} clientInfo;
|
|
|
-
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & namesCount;
|
|
|
- h & faction;
|
|
|
- h & creatures;
|
|
|
- h & dwellings;
|
|
|
- h & dwellingNames;
|
|
|
- h & buildings;
|
|
|
- h & hordeLvl;
|
|
|
- h & mageLevel;
|
|
|
- h & primaryRes;
|
|
|
- h & warMachine;
|
|
|
- h & clientInfo;
|
|
|
- h & moatAbility;
|
|
|
- h & defaultTavernChance;
|
|
|
- }
|
|
|
|
|
|
private:
|
|
|
///generated bonusing buildings messages for all towns of this type.
|
|
@@ -445,12 +355,6 @@ public:
|
|
|
|
|
|
static void loadSpecialBuildingBonuses(const JsonNode & source, BonusList & bonusList, CBuilding * building);
|
|
|
|
|
|
- template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
- {
|
|
|
- h & objects;
|
|
|
- h & randomTown;
|
|
|
- }
|
|
|
-
|
|
|
protected:
|
|
|
const std::vector<std::string> & getTypeNames() const override;
|
|
|
CFaction * loadFromJson(const std::string & scope, const JsonNode & data, const std::string & identifier, size_t index) override;
|