Advertisement
bueddl

Untitled

Nov 3rd, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1.  
  2. void my_module::on_show_map_list_request(game::player player)
  3. {
  4.     player->gameserver->get_map_list_async(0, 300, [this, player](const game::map_list &map_list)
  5.     {
  6.         // Start compose output
  7.         for (const auto &map : map_list) {
  8.             auto record = record_db->get_record_for_map(map);
  9.             // Add map, record, record->player
  10.         }
  11.         // End compose output
  12.         player->gameserver->send_manialink_page(player, output);
  13.     });
  14.  
  15.     return;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement