/// <summary> /// Creates an AdPackEntry with a data block. /// </summary> /// <param name="filename">The filename to use.</param> /// <param name="description">The description of the file. This is called /// the "title" parameter in filelist.dat.</param> /// <param name="contentType">A contentType.</param> /// <param name="ddsdata">The DDS image data (or BIK) to load into the file.</param> public AdPackEntry(String filename, String description, ContentType contentType, byte[] ddsdata) { this._contentType = contentType; this._ddsdata = ddsdata; this._description = description; this._filename = filename; }
/// <summary> /// Compares another ContentType instance to this one. /// </summary> /// <param name="obj">The ContentType to compare.</param> /// <returns>true if they are equal.</returns> public bool Equals(ContentType obj) { if (this._contentType == obj._contentType) { return true; } else { return false; } }
/// <summary> /// Creates an AdPackEntry with no data block. /// </summary> /// <param name="filename">The filename to use.</param> /// <param name="description">The description of the file. This is called /// the "title" parameter in filelist.dat.</param> /// <param name="contentType">A IGA-style contentType code.</param> public AdPackEntry(String filename, String description, ContentType contentType) : this(filename, description, contentType, null) { }