Exemple #1
0
 void work(MapCursorLocation loc)
 {
     if (bMultilayer)
     {
         foreach (MapLayer ml in Global.clipboard.Layers)
         {
             for (int y = 0; y < ml.Height; y++)
             {
                 for (int x = 0; x < ml.Width; x++)
                 {
                     mei.setTile(ml.name, x + loc.tx, y + loc.ty, ml.getTile(x, y));
                 }
             }
         }
     }
     else
     {
         MapLayer ml = (MapLayer)Global.clipboard.Layers[0];
         for (int y = 0; y < ml.Height; y++)
         {
             for (int x = 0; x < ml.Width; x++)
             {
                 mei.setTile(x + loc.tx, y + loc.ty, ml.getTile(x, y));
             }
         }
     }
 }
Exemple #2
0
            void work(MapCursorLocation loc)
            {
                if (bMultilayer)
                {
                    foreach (MapLayer ml in Global.clipboard.Layers)
                    {
                        for (int y = 0; y < ml.Height; y++)
                            for (int x = 0; x < ml.Width; x++)
                                mei.setTile(ml.name, x + loc.tx, y + loc.ty, ml.getTile(x, y));

                    }
                }
                else
                {
                    MapLayer ml = (MapLayer)Global.clipboard.Layers[0];
                    for (int y = 0; y < ml.Height; y++)
                        for (int x = 0; x < ml.Width; x++)
                            mei.setTile(x + loc.tx, y + loc.ty, ml.getTile(x, y));
                }
            }