/// <summary> /// Initializes a new instance of the <see cref="NiFile"/> class. /// </summary> /// <param name="reader">The reader.</param> public NiFile(BinaryReader reader) { this.Header = new NiHeader(this, reader); this.ReadNiObjects(reader); this.Footer = new NiFooter(this, reader); this.FixRefs(); }