namespace SabreTools.Data.Models.VPK
{
    /// <summary>
    /// Valve Package File
    /// </summary>
    /// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/VPKFile.h"/>
    public sealed class File
    {
        /// <summary>
        /// Header data
        /// </summary>
        public Header Header { get; set; } = new();

        /// <summary>
        /// Extended header data
        /// </summary>
        /// <remarks>Version 2 only</remarks>
        public ExtendedHeader? ExtendedHeader { get; set; }

        /// <summary>
        /// Archive hashes data
        /// </summary>
        /// <remarks>Version 2 only</remarks>
        public ArchiveHash[]? ArchiveHashes { get; set; }

        /// <summary>
        /// Directory items data
        /// </summary>
        public DirectoryItem[] DirectoryItems { get; set; } = [];
    }
}
