// --------------------------------------------------------------
        #region CONSTRUCTOR
        // --------------------------------------------------------------

        /// <summary>
        /// Constucts new file descriptor.
        /// </summary>
        /// <param name="fileName">Path to the mythic package.</param>
        /// <param name="file">Information about file in mythic package.</param>
        public FileDescriptor(string fileName, MythicPackageFile file)
        {
            FileName = fileName;
            File     = file;
        }
Beispiel #2
0
        // --------------------------------------------------------------
        #region CONSTRUCTORS
        // --------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="block">Index if block in <see cref="MythicPackage.Blocks"/>.</param>
        /// <param name="file">Index of file in <see cref="MythicPackageBlock.Files"/>.</param>
        /// <param name="f">Actual mythic package file that we have found</param>
        public SearchResult(int block, int file, MythicPackageFile f)
        {
            Block   = block;
            FileIdx = file;
            File    = f;
        }