public void Save(string path) { using (StreamWriter sw = new StreamWriter(path)) { sw.WriteLine(map.GetSize() + " " + map.GetTileSize()); for (int y = 0; y < map.GetSize(); y++) { for (int x = 0; x < map.GetSize(); x++) { sw.WriteLine(tiles[x, y].Serialize()); } } } }