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

Method IsEmpty

src/game/editor/mapitems/layer_game.cpp:63–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool 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
83CUi::EPopupMenuFunctionResult CLayerGame::RenderProperties(CUIRect *pToolbox)
84{

Callers

nothing calls this directly

Calls 2

IsValidGameTileFunction · 0.85

Tested by

no test coverage detected