diff options
author | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-27 01:09:09 -0400 |
---|---|---|
committer | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-27 01:09:09 -0400 |
commit | 12bf4fd843be26f89b5fe3415aeec3055c54d786 (patch) | |
tree | 9dd87794562d797ec8291fd00af0409b406467df /StardewModdingAPI/Mod.cs | |
parent | 6f64d448f937a9a2abab4a75e81491410ddbf226 (diff) | |
download | SMAPI-12bf4fd843be26f89b5fe3415aeec3055c54d786.tar.gz SMAPI-12bf4fd843be26f89b5fe3415aeec3055c54d786.tar.bz2 SMAPI-12bf4fd843be26f89b5fe3415aeec3055c54d786.zip |
someone needs to generate xml doc info im not fuck that shit
Diffstat (limited to 'StardewModdingAPI/Mod.cs')
-rw-r--r-- | StardewModdingAPI/Mod.cs | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/StardewModdingAPI/Mod.cs b/StardewModdingAPI/Mod.cs index 8d08f8de..8edfcf7e 100644 --- a/StardewModdingAPI/Mod.cs +++ b/StardewModdingAPI/Mod.cs @@ -1,43 +1,41 @@ -using System; -using System.IO; +using System.IO; namespace StardewModdingAPI { public class Mod { /// <summary> - /// The mod's manifest + /// The mod's manifest /// </summary> public Manifest Manifest { get; internal set; } /// <summary> - /// Where the mod is located on the disk. + /// Where the mod is located on the disk. /// </summary> public string PathOnDisk { get; internal set; } /// <summary> - /// A basic path to store your mod's config at. + /// A basic path to store your mod's config at. /// </summary> public string BaseConfigPath => PathOnDisk + "\\config.json"; /// <summary> - /// A basic path to where per-save configs are stored + /// A basic path to where per-save configs are stored /// </summary> public string PerSaveConfigFolder => GetPerSaveConfigFolder(); /// <summary> - /// A basic path to store your mod's config at, dependent on the current save. - /// The Manifest must allow for per-save configs. This is to keep from having an - /// empty directory in every mod folder. + /// A basic path to store your mod's config at, dependent on the current save. + /// The Manifest must allow for per-save configs. This is to keep from having an + /// empty directory in every mod folder. /// </summary> public string PerSaveConfigPath => Constants.CurrentSavePathExists ? Path.Combine(PerSaveConfigFolder, Constants.SaveFolderName + ".json") : ""; /// <summary> - /// A basic method that is the entry-point of your mod. It will always be called once when the mod loads. + /// A basic method that is the entry-point of your mod. It will always be called once when the mod loads. /// </summary> public virtual void Entry(params object[] objects) { - } private string GetPerSaveConfigFolder() @@ -46,8 +44,8 @@ namespace StardewModdingAPI { return Path.Combine(PathOnDisk, "psconfigs"); } - Log.Error("The mod [{0}] is not configured to use per-save configs.", Manifest.Name); + Log.AsyncR($"The mod [{Manifest.Name}] is not configured to use per-save configs."); return ""; } } -} +}
\ No newline at end of file |