| 7 | using namespace std; |
| 8 | |
| 9 | MwmSet::MwmHandle FindWorld(DataSource const & dataSource, vector<shared_ptr<MwmInfo>> const & infos) |
| 10 | { |
| 11 | MwmSet::MwmHandle handle; |
| 12 | for (auto const & info : infos) |
| 13 | { |
| 14 | if (info->GetType() == MwmInfo::WORLD) |
| 15 | { |
| 16 | handle = dataSource.GetMwmHandleById(MwmSet::MwmId(info)); |
| 17 | break; |
| 18 | } |
| 19 | } |
| 20 | return handle; |
| 21 | } |
| 22 | |
| 23 | MwmSet::MwmHandle FindWorld(DataSource const & dataSource) |
| 24 | { |