diff options
Diffstat (limited to 'StardewModdingAPI/Manifest.cs')
-rw-r--r-- | StardewModdingAPI/Manifest.cs | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/StardewModdingAPI/Manifest.cs b/StardewModdingAPI/Manifest.cs index 4fc1ed3c..9b358c90 100644 --- a/StardewModdingAPI/Manifest.cs +++ b/StardewModdingAPI/Manifest.cs @@ -1,12 +1,8 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StardewModdingAPI { - public class Manifest + public class Manifest : Config { /// <summary> /// The name of your mod. @@ -28,6 +24,31 @@ namespace StardewModdingAPI /// </summary> public virtual string Description { get; set; } - public string EntryDll { get; set; } + /// <summary> + /// The unique ID of the mod. It doesn't *need* to be anything. + /// </summary> + public virtual string UniqueID { get; set; } + + /// <summary> + /// Whether or not the mod uses per-save-config files. + /// </summary> + public virtual bool PerSaveConfigs { get; set; } + + /// <summary> + /// The name of the DLL in the directory that has the Entry() method. + /// </summary> + public virtual string EntryDll { get; set; } + + public override Config GenerateBaseConfig(Config baseConfig) + { + Name = ""; + Authour = ""; + Version = ""; + Description = ""; + UniqueID = Guid.NewGuid().ToString(); + PerSaveConfigs = false; + EntryDll = ""; + return this; + } } } |