diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-22 20:58:00 -0400 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-22 20:58:00 -0400 |
commit | 7076886f2c229db8c06f41dd29aa0bf7ac966dc2 (patch) | |
tree | b73219bf01b6afc25dbe26b761e5d4acc28773dd /StardewModdingAPI/Manifest.cs | |
parent | 07773a380428c7b37f729e3b32fd7e7b960b360d (diff) | |
parent | 24e144d0f1aaae33fb51e80031259d0119acff7c (diff) | |
download | SMAPI-7076886f2c229db8c06f41dd29aa0bf7ac966dc2.tar.gz SMAPI-7076886f2c229db8c06f41dd29aa0bf7ac966dc2.tar.bz2 SMAPI-7076886f2c229db8c06f41dd29aa0bf7ac966dc2.zip |
Merge pull request #50 from Zoryn4163/master
a lot
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; + } } } |