internal override void ParseSection(System.IO.FileStream file) { base.ParseSection(file); List<TerrainDescriptor> terrainDescriptors = new List<TerrainDescriptor>(); using (MemoryStream ms = new MemoryStream(RawData)) { while (ms.Position < ms.Length) { TerrainDescriptor terrain = new TerrainDescriptor(ms); terrainDescriptors.Add(terrain); } } for (int i = 0; i < 128; i++) { for (int j = 0; j < 128; j++) { Terrain[i, 127 - j] = terrainDescriptors[i * 128 + j]; } } }
internal TerrainSection() : base("XTER") { Terrain = new TerrainDescriptor[128, 128]; }