mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-19 00:17:56 +02:00
netpacks
This commit is contained in:
@ -288,6 +288,24 @@ struct DLL_LINKAGE ChangeSpells : public CPackForClient
|
||||
}
|
||||
};
|
||||
|
||||
struct DLL_LINKAGE SetTownSpells : public CPackForClient
|
||||
{
|
||||
void applyGs(CGameState * gs) override;
|
||||
|
||||
void visitTyped(ICPackVisitor & visitor) override;
|
||||
|
||||
ui8 level = 0;
|
||||
ObjectInstanceID tid;
|
||||
std::vector<SpellID> spells;
|
||||
|
||||
template <typename Handler> void serialize(Handler & h)
|
||||
{
|
||||
h & level;
|
||||
h & tid;
|
||||
h & spells;
|
||||
}
|
||||
};
|
||||
|
||||
struct DLL_LINKAGE SetMana : public CPackForClient
|
||||
{
|
||||
void applyGs(CGameState * gs) override;
|
||||
|
Reference in New Issue
Block a user