| 58 | } |
| 59 | |
| 60 | bool CLayerSwitch::IsEmpty() const |
| 61 | { |
| 62 | for(int y = 0; y < m_Height; y++) |
| 63 | { |
| 64 | for(int x = 0; x < m_Width; x++) |
| 65 | { |
| 66 | const int Index = GetTile(x, y).m_Index; |
| 67 | if(Index == 0) |
| 68 | { |
| 69 | continue; |
| 70 | } |
| 71 | if(Editor()->IsAllowPlaceUnusedTiles() || IsValidSwitchTile(Index)) |
| 72 | { |
| 73 | return false; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | return true; |
| 78 | } |
| 79 | |
| 80 | void CLayerSwitch::BrushDraw(CLayer *pBrush, vec2 WorldPos) |
| 81 | { |
no test coverage detected