1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

- removed no longer used CSndHandler. Transition to new fs is finished

- moved TownHandler::requirements to CBuilding class
This commit is contained in:
Ivan Savenko
2012-08-09 10:32:50 +00:00
parent 08bcfd1285
commit 7e778045b8
14 changed files with 30 additions and 270 deletions

View File

@ -22,13 +22,14 @@ public:
TResources resources;
std::string name;
std::string description;
std::set<int> requirements; //set of required buildings
const std::string &Name() const;
const std::string &Description() const;
template <typename Handler> void serialize(Handler &h, const int version)
{
h & tid & bid & resources & name & description;
h & tid & bid & resources & name & description & requirements;
}
CBuilding(int TID = -1, int BID = -1);
};