public Drawing(BinaryReader byteFile) { this.mapping = new Mapping(byteFile); byte TypeOfElement = byteFile.ReadByte(); while (TypeOfElement != 0) { if (TypeOfElement == 1) { PolygonElements.Add(new PolygonElement(byteFile)); } else if (TypeOfElement == 3) { XSectionElements.Add(new XSectionElement(byteFile)); } TypeOfElement = byteFile.ReadByte(); } }
public TopFile(BinaryReader byteFile) { ch0 = byteFile.ReadChar(); ch1 = byteFile.ReadChar(); ch2 = byteFile.ReadChar(); ver = byteFile.ReadByte(); this.TripCount = byteFile.ReadUInt32(); this.Trips = LoadTripList(byteFile, this.TripCount); this.ShotsCount = byteFile.ReadUInt32(); this.Shots = LoadShotList(byteFile, this.ShotsCount); var neki = Shots[38].From.Name; var neki2 = Shots[38].To.Name; this.RefCount = byteFile.ReadUInt32(); this.References = LoadRefList(byteFile, this.RefCount); this.OverView = new Mapping(byteFile); this.OutLine = new Drawing(byteFile); this.SideView = new Drawing(byteFile); }