1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Removed useless CPack::type field.

* it was an ancient network protocol artifact
This commit is contained in:
AlexVinS
2016-11-18 17:45:59 +03:00
parent ebb88f4133
commit dc39fb2d14
8 changed files with 195 additions and 289 deletions

View File

@@ -24,18 +24,16 @@ struct ArtSlotInfo;
struct DLL_LINKAGE CPack
{
ui16 type;
CPack() {};
virtual ~CPack() {};
ui16 getType() const { return type; }
template <typename Handler> void serialize(Handler &h, const int version)
{
logNetwork->errorStream() << "CPack serialized... this should not happen!";
assert(false && "CPack serialized");
}
void applyGs(CGameState *gs) { }
virtual std::string toString() const { return boost::str(boost::format("{CPack: type '%d'}") % type); }
virtual std::string toString() const { return boost::str(boost::format("{CPack: type '%s'}") % typeid(this).name()); }
};
std::ostream & operator<<(std::ostream & out, const CPack * pack);