1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Merge pull request #3051 from Laserlicht/name_change

possibility to change name in lobby
This commit is contained in:
Nordsoft91
2023-10-16 22:28:31 +02:00
committed by GitHub
14 changed files with 130 additions and 5 deletions

View File

@@ -465,6 +465,14 @@ void CServerHandler::setPlayer(PlayerColor color) const
sendLobbyPack(lsp);
}
void CServerHandler::setPlayerName(PlayerColor color, const std::string & name) const
{
LobbySetPlayerName lspn;
lspn.color = color;
lspn.name = name;
sendLobbyPack(lspn);
}
void CServerHandler::setPlayerOption(ui8 what, int32_t value, PlayerColor player) const
{
LobbyChangePlayerOption lcpo;