using System; using UnityEngine.Localization.Metadata; namespace UnityEngine.Localization.Tables { [Serializable] class TableEntryData { [SerializeField] long m_Id; [SerializeField] string m_Localized; [SerializeField] MetadataCollection m_Metadata = new MetadataCollection(); /// /// The Key for this table entry. Must be unique for each table. /// public long Id { get => m_Id; set => m_Id = value; } /// /// This can be either a translated string or for assets the guid. /// public string Localized { get => m_Localized; set => m_Localized = value; } /// /// The metadata for this entry. /// public MetadataCollection Metadata { get => m_Metadata; set => m_Metadata = value; } public TableEntryData() {} /// /// TODO: DOC /// /// public TableEntryData(long id) => Id = id; /// /// TODO: DOC /// /// /// public TableEntryData(long id, string localized) : this(id) { Localized = localized; } } }