Assets.Map.Creator.MapSaveLoad.CreateMapContainer C# (CSharp) Метод

CreateMapContainer() публичный статический Метод

public static CreateMapContainer ( List map ) : CellMapXMLContainer
map List
Результат CellMapXMLContainer
        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
            };
        }