MCPcopy Create free account
hub / github.com/ddnet/ddnet / IsEmpty

Method IsEmpty

src/game/editor/mapitems/layer_front.cpp:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool CLayerFront::IsEmpty() const
42{
43 for(int y = 0; y < m_Height; y++)
44 {
45 for(int x = 0; x < m_Width; x++)
46 {
47 const int Index = GetTile(x, y).m_Index;
48 if(Index == 0)
49 {
50 continue;
51 }
52 if(Editor()->IsAllowPlaceUnusedTiles() || IsValidFrontTile(Index))
53 {
54 return false;
55 }
56 }
57 }
58 return true;
59}
60
61const char *CLayerFront::TypeName() const
62{

Callers

nothing calls this directly

Calls 2

IsValidFrontTileFunction · 0.85

Tested by

no test coverage detected