using System.Runtime.InteropServices;

namespace SabreTools.Data.Models.DVD
{
    /// <see href="https://dvd.sourceforge.net/dvdinfo/ifo_vmg.html"/>
    [StructLayout(LayoutKind.Sequential)]
    public sealed class LanguageUnitTableEntry
    {
        /// <summary>
        /// ISO639 language code
        /// </summary>
        public ushort ISO639LanguageCode;

        /// <summary>
        /// Reserved for language code extension
        /// </summary>
        public byte Reserved;

        /// <summary>
        /// Menu existence flag [80 = title]
        /// </summary>
        public byte MenuExistenceFlag;

        /// <summary>
        /// Offset to VMGM_LU, relative to VMGM_PGCI_UT
        /// </summary>
        public uint LanguageUnitOffset;
    }
}
