mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Switch client-server communication to new API
This commit is contained in:
@@ -123,7 +123,12 @@ bool LobbyInfo::isClientHost(int clientId) const
|
||||
return clientId == hostClientId;
|
||||
}
|
||||
|
||||
std::set<PlayerColor> LobbyInfo::getAllClientPlayers(int clientId)
|
||||
bool LobbyInfo::isPlayerHost(const PlayerColor & color) const
|
||||
{
|
||||
return vstd::contains(getAllClientPlayers(hostClientId), color);
|
||||
}
|
||||
|
||||
std::set<PlayerColor> LobbyInfo::getAllClientPlayers(int clientId) const
|
||||
{
|
||||
std::set<PlayerColor> players;
|
||||
for(auto & elem : si->playerInfos)
|
||||
|
||||
Reference in New Issue
Block a user