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

possibility to change name

This commit is contained in:
Laserlicht
2023-10-13 23:04:35 +02:00
committed by GitHub
parent 802e1bb961
commit 0c6b1ca3c8
14 changed files with 86 additions and 5 deletions

View File

@@ -499,6 +499,14 @@ void CServerHandler::setPlayer(PlayerColor color) const
sendLobbyPack(lsp);
}
void CServerHandler::setPlayerName(PlayerColor color, 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;