| 61 | } |
| 62 | |
| 63 | bool CLayerGame::IsEmpty() const |
| 64 | { |
| 65 | for(int y = 0; y < m_Height; y++) |
| 66 | { |
| 67 | for(int x = 0; x < m_Width; x++) |
| 68 | { |
| 69 | const int Index = GetTile(x, y).m_Index; |
| 70 | if(Index == 0) |
| 71 | { |
| 72 | continue; |
| 73 | } |
| 74 | if(Editor()->IsAllowPlaceUnusedTiles() || IsValidGameTile(Index)) |
| 75 | { |
| 76 | return false; |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | return true; |
| 81 | } |
| 82 | |
| 83 | CUi::EPopupMenuFunctionResult CLayerGame::RenderProperties(CUIRect *pToolbox) |
| 84 | { |
nothing calls this directly
no test coverage detected