Advertisement
bueddl

Untitled

Jan 4th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1.  
  2. my_module::my_module()
  3. {
  4. }
  5.  
  6. void my_module::on_show_map_list_request(game::player &player)
  7. {
  8.     player.gameserver().get_map_list_async(0, 300,
  9.     [this, player](const game::map_list & map_list) {
  10.         std::vector<std::tuple<const game::map&, const record::record&>> list_data;
  11.  
  12.         for (const auto &map : map_list)
  13.             list_data.emplace_back(map, record_db->get_record_for_map(map));
  14.  
  15.         auto view = make_view<my_view>(list_data);
  16.         player.gameserver().send_manialink_page_async(player, view);
  17.     });
  18.  
  19.     return;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement