| 298 | } |
| 299 | |
| 300 | std::shared_ptr<CLayer> CEditorMap::SelectedLayer(int Index) const |
| 301 | { |
| 302 | std::shared_ptr<CLayerGroup> pGroup = SelectedGroup(); |
| 303 | if(!pGroup) |
| 304 | return nullptr; |
| 305 | |
| 306 | if(Index < 0 || Index >= (int)m_vSelectedLayers.size()) |
| 307 | return nullptr; |
| 308 | |
| 309 | int LayerIndex = m_vSelectedLayers[Index]; |
| 310 | |
| 311 | if(LayerIndex >= 0 && LayerIndex < (int)m_vpGroups[m_SelectedGroup]->m_vpLayers.size()) |
| 312 | return pGroup->m_vpLayers[LayerIndex]; |
| 313 | return nullptr; |
| 314 | } |
| 315 | |
| 316 | std::shared_ptr<CLayer> CEditorMap::SelectedLayerType(int Index, int Type) const |
| 317 | { |
no outgoing calls
no test coverage detected