// Methods internal void Init(BigEndianReader Reader, int MapVersion) { this.LayerId = Reader.ReadInt(); this.CellsCount = Reader.ReadShort(); int cellsCount = this.CellsCount; int i = 1; while ((i <= cellsCount)) { Cell item = new Cell(); item.Init(Reader, MapVersion); this.Cells.Add(item); i += 1; } }