Exemple #1
0
 //清除所有图形元素
 public void clearAllElement()
 {
     //清除地图引用
     for (int i = 0; i < Count(); i++)
     {
         TileGfxElement element     = (TileGfxElement)this[i];
         MapsManager    mapsManager = ((TileGfxManager)parent).mapsManager;
         for (int j = 0; j < mapsManager.Count(); j++)
         {
             MapElement map = mapsManager[j];
             map.deleteTileUsed(element);
         }
     }
     Clear();
 }