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)); } } } }
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)); } }