summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Manifest.cs
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-22 20:36:04 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-22 20:36:04 -0400
commitd31456fdc7cd55576523bc32ff8a7c2c18d66710 (patch)
tree6c4a5f7904b172ea9af7d3d6b1bc07587e481e38 /StardewModdingAPI/Manifest.cs
parenta30d804ecc200723bd144adf06d7a94dfff86f0f (diff)
downloadSMAPI-d31456fdc7cd55576523bc32ff8a7c2c18d66710.tar.gz
SMAPI-d31456fdc7cd55576523bc32ff8a7c2c18d66710.tar.bz2
SMAPI-d31456fdc7cd55576523bc32ff8a7c2c18d66710.zip
okay. things.
Diffstat (limited to 'StardewModdingAPI/Manifest.cs')
-rw-r--r--StardewModdingAPI/Manifest.cs33
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;
+ }
}
}