SHOW:
|
|
- or go back to the newest paste.
1 | // ... | |
2 | ||
3 | - | get_map_list(0, 100, [this](std::vector<Map> &map_list) { |
3 | + | auto &map_list = server->get_map_list(0, 100); |
4 | ||
5 | - | for (const auto &map : map_list) { |
5 | + | for (const auto &map : map_list) { |
6 | - | Player blah; |
6 | + | const record &rec = record_db::get_record_for_map(server, map); |
7 | - | Record rec; |
7 | + | const player &pl = rec.player; |
8 | - | |
8 | + | |
9 | - | get_record_by_map(map, [this, blah, rec](Record &record) { |
9 | + | // invokes sth. like get_player(rec.player_id) |
10 | - | rec = record; |
10 | + | |
11 | // ... | |
12 | - | get_player(record.player, [this, blah](Player &player) { |
12 | + | } |
13 | - | blah = player; |
13 | + | |
14 | - | }); |
14 | + |