implement ep3 extended game/tournament info commands

This commit is contained in:
Martin Michelsen
2022-12-11 11:04:11 -08:00
parent 14639c63e3
commit cceaf5efde
7 changed files with 247 additions and 83 deletions
+10
View File
@@ -235,3 +235,13 @@ uint32_t Lobby::generate_item_id(uint8_t client_id) {
}
return this->next_game_item_id++;
}
unordered_map<uint32_t, shared_ptr<Client>> Lobby::clients_by_serial_number() const {
unordered_map<uint32_t, shared_ptr<Client>> ret;
for (auto c : this->clients) {
if (c) {
ret.emplace(c->license->serial_number, c);
}
}
return ret;
}