public static CellMapXMLContainer CreateMapContainer(List<List<Cell>> map)
{
List<CellXML> cells = new List<CellXML>();
for (int i = 0; i < map.Count; i++)
{
for (int j = 0; j < map.Count; j++)
{
cells.Add(CreateCellXml(map[i][j]));
}
}
return new CellMapXMLContainer()
{
size = map.Count,
cells = cells
};
}