Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_module::my_module()
- {
- }
- 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) {
- std::vector<std::tuple<const game::map&, const record::record&>> list_data;
- for (const auto &map : map_list)
- list_data.emplace_back(map, record_db->get_record_for_map(map));
- auto view = make_view<my_view>(list_data);
- player.gameserver().send_manialink_page_async(player, view);
- });
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement