mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Remove bitmasks of PlayerColor's. Add encode/decode methods
This commit is contained in:
@@ -59,7 +59,7 @@ struct DLL_LINKAGE DisposedHero
|
||||
HeroTypeID heroId;
|
||||
HeroTypeID portrait; /// The portrait id of the hero, -1 is default.
|
||||
std::string name;
|
||||
PlayerColor::Mask players; /// Who can hire this hero (bitfield).
|
||||
std::set<PlayerColor> players; /// Who can hire this hero (bitfield).
|
||||
|
||||
template <typename Handler>
|
||||
void serialize(Handler & h, const int version)
|
||||
|
||||
Reference in New Issue
Block a user