/// <summary> /// Deze constructor maakt een nieuw WAD object aan met de meegegeven WAD. /// </summary> /// <param name="wadname">De bestandsnaam (inclusief pad) van de te interpreteren WAD.</param> public Wad3(string wadname) : base(wadname) { this.directory = new Wad3DirEntry [this.header.NumberOfLumps]; this.byteReader.BaseStream.Seek(this.header.DirectoryOffset, 0); for (int i = 0; i < directory.Length; i++) { directory [i] = new Wad3DirEntry(this.byteReader.ReadInt32(), this.byteReader.ReadInt32(), this.byteReader.ReadInt32(), (int)this.byteReader.ReadByte(), this.byteReader.ReadByte(), this.byteReader.ReadByte(), this.byteReader.ReadByte(), this.byteReader.ReadChars(16)); } }
/// <summary> /// Deze constructor maakt een nieuw WAD object aan met de meegegeven WAD. /// </summary> /// <param name="wadname">De bestandsnaam (inclusief pad) van de te interpreteren WAD.</param> public Wad3(string wadname) : base(wadname) { Directory = new Wad3DirEntry[Header.NumberOfLumps]; _byteReader.BaseStream.Seek(Header.DirectoryOffset, 0); for (int i = 0; i < Directory.Length; i++) { Directory[i] = new Wad3DirEntry( _byteReader.ReadInt32(), _byteReader.ReadInt32(), _byteReader.ReadInt32(), _byteReader.ReadByte(), _byteReader.ReadByte(), _byteReader.ReadByte(), _byteReader.ReadByte(), _byteReader.ReadChars(16)); } }