using UnityEngine; using ModTool.Shared; using UnityEngine.UI; namespace ModTool.Editor.Exporting { /// /// Stores the exporter's settings. /// public class ExportSettings : Singleton { /// /// The Mod's name. /// public static new string name { get { return instance._name; } set { instance._name = value; } } /// /// The Mod's author. /// public static string author { get { return instance._author; } set { instance._author = value; } } /// /// The Mod's description. /// public static string description { get { return instance._description; } set { instance._description = value; } } /// /// The Mod's version. /// public static string version { get { return instance._version; } set { instance._version = value; } } /// /// The Mod's Creation Date. /// public static string creationDate { get { return instance._creationDate; } set { instance._creationDate = value; } } /// /// The selected platforms for which this mod will be exported. /// public static ModPlatform platforms { get { return instance._platforms; } set { instance._platforms = value; } } /// /// The selected content types that will be exported. /// public static ModContent content { get { return instance._content; } set { instance._content = value; } } /// /// The directory to which the Mod will be exported. /// public static string outputDirectory { get { return instance._outputDirectory; } set { instance._outputDirectory = value; } } /// /// The directory to which the Mod will be exported. /// public static RawImage coverImage { get { return instance._coverImage; } set { instance._coverImage = value; } } [SerializeField] private string _name; [SerializeField] private string _author; [SerializeField] private string _description; [SerializeField] private string _version; [SerializeField] private string _creationDate; [SerializeField] private ModPlatform _platforms = (ModPlatform)(-1); [SerializeField] private ModContent _content = (ModContent)(-1); [SerializeField] private string _outputDirectory; [SerializeField] private RawImage _coverImage; } }