mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
0c07384293
- Removed 'version' field from serialize() method - Handler classes - Binary(De)Serializer now have 'version' field - Serialization versioning now uses named enum Save compatibility with 1.4.X saves should be intact
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/*
|
|
* SThievesGuildInfo.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include "../GameConstants.h"
|
|
#include "InfoAboutArmy.h"
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
struct DLL_LINKAGE SThievesGuildInfo
|
|
{
|
|
std::vector<PlayerColor> playerColors; //colors of players that are in-game
|
|
|
|
std::vector< std::vector< PlayerColor > > numOfTowns, numOfHeroes, gold, woodOre, mercSulfCrystGems, obelisks, artifacts, army, income; // [place] -> [colours of players]
|
|
|
|
std::map<PlayerColor, InfoAboutHero> colorToBestHero; //maps player's color to his best heros'
|
|
|
|
std::map<PlayerColor, EAiTactic> personality; // color to personality // ai tactic
|
|
std::map<PlayerColor, CreatureID> bestCreature; // color to ID // id or -1 if not known
|
|
|
|
// template <typename Handler> void serialize(Handler &h)
|
|
// {
|
|
// h & playerColors;
|
|
// h & numOfTowns;
|
|
// h & numOfHeroes;
|
|
// h & gold;
|
|
// h & woodOre;
|
|
// h & mercSulfCrystGems;
|
|
// h & obelisks;
|
|
// h & artifacts;
|
|
// h & army;
|
|
// h & income;
|
|
// h & colorToBestHero;
|
|
// h & personality;
|
|
// h & bestCreature;
|
|
// }
|
|
|
|
};
|
|
|
|
VCMI_LIB_NAMESPACE_END
|