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

@@ -286,6 +286,12 @@ void CCallback::setFormation(const CGHeroInstance * hero, EArmyFormation mode)
sendRequest(pack);
}
void CCallback::setTownName(const CGTownInstance * town, std::string & name)
{
SetTownName pack(town->id, name);
sendRequest(pack);
}
void CCallback::recruitHero(const CGObjectInstance *townOrTavern, const CGHeroInstance *hero, const HeroTypeID & nextHero)
{
assert(townOrTavern);