Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void my_module::on_show_map_list_request(game::player player)
- {
- player->gameserver->get_map_list_async(0, 300, [this, player](const game::map_list &map_list)
- {
- // Start compose output
- for (const auto &map : map_list) {
- auto record = record_db->get_record_for_map(map);
- // Add map, record, record->player
- }
- // End compose output
- player->gameserver->send_manialink_page(player, output);
- });
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement