mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Removed no longer used netpacks
This commit is contained in:
parent
26fdaacbe5
commit
350749a1a6
@ -30,8 +30,8 @@ public:
|
||||
CMapEvent();
|
||||
virtual ~CMapEvent() = default;
|
||||
|
||||
bool earlierThan(const CMapEvent & other) const;
|
||||
bool earlierThanOrEqual(const CMapEvent & other) const;
|
||||
bool occursToday(int currentDay) const;
|
||||
bool affectsPlayer(PlayerColor player, bool isHuman) const;
|
||||
|
||||
std::string name;
|
||||
MetaString message;
|
||||
|
@ -55,8 +55,6 @@ public:
|
||||
virtual void visitSetCommanderProperty(SetCommanderProperty & pack) {}
|
||||
virtual void visitAddQuest(AddQuest & pack) {}
|
||||
virtual void visitUpdateArtHandlerLists(UpdateArtHandlerLists & pack) {}
|
||||
virtual void visitUpdateMapEvents(UpdateMapEvents & pack) {}
|
||||
virtual void visitUpdateCastleEvents(UpdateCastleEvents & pack) {}
|
||||
virtual void visitChangeFormation(ChangeFormation & pack) {}
|
||||
virtual void visitRemoveObject(RemoveObject & pack) {}
|
||||
virtual void visitTryMoveHero(TryMoveHero & pack) {}
|
||||
|
@ -225,16 +225,6 @@ void UpdateArtHandlerLists::visitTyped(ICPackVisitor & visitor)
|
||||
visitor.visitUpdateArtHandlerLists(*this);
|
||||
}
|
||||
|
||||
void UpdateMapEvents::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitUpdateMapEvents(*this);
|
||||
}
|
||||
|
||||
void UpdateCastleEvents::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitUpdateCastleEvents(*this);
|
||||
}
|
||||
|
||||
void ChangeFormation::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitChangeFormation(*this);
|
||||
@ -907,17 +897,6 @@ void UpdateArtHandlerLists::applyGs(CGameState * gs) const
|
||||
gs->allocatedArtifacts = allocatedArtifacts;
|
||||
}
|
||||
|
||||
void UpdateMapEvents::applyGs(CGameState * gs) const
|
||||
{
|
||||
gs->map->events = events;
|
||||
}
|
||||
|
||||
void UpdateCastleEvents::applyGs(CGameState * gs) const
|
||||
{
|
||||
auto * t = gs->getTown(town);
|
||||
t->events = events;
|
||||
}
|
||||
|
||||
void ChangeFormation::applyGs(CGameState * gs) const
|
||||
{
|
||||
gs->getHero(hid)->setFormation(formation);
|
||||
|
@ -545,34 +545,6 @@ struct DLL_LINKAGE UpdateArtHandlerLists : public CPackForClient
|
||||
}
|
||||
};
|
||||
|
||||
struct DLL_LINKAGE UpdateMapEvents : public CPackForClient
|
||||
{
|
||||
std::list<CMapEvent> events;
|
||||
|
||||
void applyGs(CGameState * gs) const;
|
||||
void visitTyped(ICPackVisitor & visitor) override;
|
||||
|
||||
template <typename Handler> void serialize(Handler & h)
|
||||
{
|
||||
h & events;
|
||||
}
|
||||
};
|
||||
|
||||
struct DLL_LINKAGE UpdateCastleEvents : public CPackForClient
|
||||
{
|
||||
ObjectInstanceID town;
|
||||
std::vector<CCastleEvent> events;
|
||||
|
||||
void applyGs(CGameState * gs) const;
|
||||
void visitTyped(ICPackVisitor & visitor) override;
|
||||
|
||||
template <typename Handler> void serialize(Handler & h)
|
||||
{
|
||||
h & town;
|
||||
h & events;
|
||||
}
|
||||
};
|
||||
|
||||
struct DLL_LINKAGE ChangeFormation : public CPackForClient
|
||||
{
|
||||
ObjectInstanceID hid;
|
||||
|
@ -44,8 +44,6 @@ void registerTypesClientPacks(Serializer &s)
|
||||
s.template registerType<CPackForClient, PlayerReinitInterface>();
|
||||
s.template registerType<CPackForClient, RemoveBonus>();
|
||||
s.template registerType<CPackForClient, UpdateArtHandlerLists>();
|
||||
s.template registerType<CPackForClient, UpdateMapEvents>();
|
||||
s.template registerType<CPackForClient, UpdateCastleEvents>();
|
||||
s.template registerType<CPackForClient, ChangeFormation>();
|
||||
s.template registerType<CPackForClient, RemoveObject>();
|
||||
s.template registerType<CPackForClient, TryMoveHero>();
|
||||
|
Loading…
Reference in New Issue
Block a user