summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-09 23:27:08 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-09 23:27:08 -0500
commit56d28ef0d4072d6b3b3dce0b2c1f6cb24408bf95 (patch)
tree4432d51ad2716c5b6067f16459dbcbdfbd6299a6 /src
parent25a3d9773c7e91903ced41e4bafd164ae42a9644 (diff)
downloadSMAPI-56d28ef0d4072d6b3b3dce0b2c1f6cb24408bf95.tar.gz
SMAPI-56d28ef0d4072d6b3b3dce0b2c1f6cb24408bf95.tar.bz2
SMAPI-56d28ef0d4072d6b3b3dce0b2c1f6cb24408bf95.zip
make some constants internal (#231)
Diffstat (limited to 'src')
-rw-r--r--src/StardewModdingAPI/Constants.cs28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs
index c71401b1..438c869c 100644
--- a/src/StardewModdingAPI/Constants.cs
+++ b/src/StardewModdingAPI/Constants.cs
@@ -26,24 +26,21 @@ namespace StardewModdingAPI
/*********
** Accessors
*********/
+ /****
+ ** Public
+ ****/
/// <summary>SMAPI's current semantic version.</summary>
public static ISemanticVersion ApiVersion => new SemanticVersion(1, 8, 0, null);
/// <summary>The minimum supported version of Stardew Valley.</summary>
public const string MinimumGameVersion = "1.2";
- /// <summary>The GitHub repository to check for updates.</summary>
- public const string GitHubRepository = "Pathoschild/SMAPI";
-
/// <summary>The directory path containing Stardew Valley's app data.</summary>
public static string DataPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley");
/// <summary>The directory path where all saves are stored.</summary>
public static string SavesPath => Path.Combine(Constants.DataPath, "Saves");
- /// <summary>Whether the directory containing the current save's data exists on disk.</summary>
- public static bool CurrentSavePathExists => Directory.Exists(Constants.RawSavePath);
-
/// <summary>The directory name containing the current save's data (if a save is loaded and the directory exists).</summary>
public static string SaveFolderName => Constants.CurrentSavePathExists ? Constants.RawSaveFolderName : "";
@@ -56,14 +53,17 @@ namespace StardewModdingAPI
/// <summary>The path to the current assembly being executing.</summary>
public static string ExecutionPath => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
- /// <summary>The title of the SMAPI console window.</summary>
- public static string ConsoleTitle => $"Stardew Modding API Console - Version {Constants.ApiVersion} - Mods Loaded: {Program.ModsLoaded}";
-
/// <summary>The directory path in which error logs should be stored.</summary>
public static string LogDir => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs");
- /// <summary>The file path to the log where the latest output should be saved.</summary>
- public static string LogPath => Path.Combine(Constants.LogDir, "SMAPI-latest.txt");
+ /****
+ ** Internal
+ ****/
+ /// <summary>The GitHub repository to check for updates.</summary>
+ internal const string GitHubRepository = "Pathoschild/SMAPI";
+
+ /// <summary>The title of the SMAPI console window.</summary>
+ internal static string ConsoleTitle => $"Stardew Modding API Console - Version {Constants.ApiVersion} - Mods Loaded: {Program.ModsLoaded}";
/// <summary>The file path for the SMAPI configuration file.</summary>
internal static string ApiConfigPath => Path.Combine(Constants.ExecutionPath, $"{typeof(Program).Assembly.GetName().Name}.config.json");
@@ -71,6 +71,12 @@ namespace StardewModdingAPI
/// <summary>The file path for the SMAPI data file containing metadata about known mods.</summary>
internal static string ApiModMetadataPath => Path.Combine(Constants.ExecutionPath, $"{typeof(Program).Assembly.GetName().Name}.data.json");
+ /// <summary>The file path to the log where the latest output should be saved.</summary>
+ internal static string LogPath => Path.Combine(Constants.LogDir, "SMAPI-latest.txt");
+
+ /// <summary>Whether the directory containing the current save's data exists on disk.</summary>
+ internal static bool CurrentSavePathExists => Directory.Exists(Constants.RawSavePath);
+
/*********
** Protected methods