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

netpacks for renaming

This commit is contained in:
Laserlicht
2025-10-05 02:46:19 +02:00
parent 115d90cbb3
commit 120213509d
17 changed files with 99 additions and 1 deletions

View File

@@ -614,6 +614,20 @@ struct DLL_LINKAGE ChangeFormation : public CPackForClient
}
};
struct DLL_LINKAGE ChangeTownName : public CPackForClient
{
ObjectInstanceID tid;
std::string name;
void visitTyped(ICPackVisitor & visitor) override;
template <typename Handler> void serialize(Handler & h)
{
h & tid;
h & name;
}
};
struct DLL_LINKAGE RemoveObject : public CPackForClient
{
RemoveObject() = default;