namespace SabreTools.Data.Models.Nitro
{
    /// <summary>
    /// The name table stores the names of the files and the structure
    /// of the file system. From the information stored, the index of the
    /// file's entry in the File Allocation Table can be found.
    ///
    /// It is split into two parts:
    /// - Folder Allocation Table
    /// - Name List
    /// </summary>
    /// <see href="https://github.com/Deijin27/RanseiLink/wiki/NDS-File-System"/>
    public sealed class NameTable
    {
        /// <summary>
        /// Folder allocation table
        /// </summary>
        public FolderAllocationTableEntry[] FolderAllocationTable { get; set; } = [];

        /// <summary>
        /// Name list
        /// </summary>
        public NameListEntry[] NameList { get; set; } = [];
    }
}
