summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Constants.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-14 13:11:43 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-14 13:11:43 -0500
commite804ed5479b3fffbe060e11d31e55499cab842f9 (patch)
tree78796eb5bf2bc5a54848e802cdd5f69bb6c586a9 /src/StardewModdingAPI/Constants.cs
parent548cbcecc41e88413885b1fcce7504a627640826 (diff)
downloadSMAPI-e804ed5479b3fffbe060e11d31e55499cab842f9.tar.gz
SMAPI-e804ed5479b3fffbe060e11d31e55499cab842f9.tar.bz2
SMAPI-e804ed5479b3fffbe060e11d31e55499cab842f9.zip
mark one constant internal
Diffstat (limited to 'src/StardewModdingAPI/Constants.cs')
-rw-r--r--src/StardewModdingAPI/Constants.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs
index 438c869c..db0c2622 100644
--- a/src/StardewModdingAPI/Constants.cs
+++ b/src/StardewModdingAPI/Constants.cs
@@ -47,9 +47,6 @@ namespace StardewModdingAPI
/// <summary>The directory path containing the current save's data (if a save is loaded and the directory exists).</summary>
public static string CurrentSavePath => Constants.CurrentSavePathExists ? Constants.RawSavePath : "";
- /// <summary>Whether a player save has been loaded.</summary>
- public static bool PlayerNull => !Game1.hasLoadedGame || Game1.player == null || string.IsNullOrEmpty(Game1.player.name);
-
/// <summary>The path to the current assembly being executing.</summary>
public static string ExecutionPath => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
@@ -77,6 +74,9 @@ namespace StardewModdingAPI
/// <summary>Whether the directory containing the current save's data exists on disk.</summary>
internal static bool CurrentSavePathExists => Directory.Exists(Constants.RawSavePath);
+ /// <summary>Whether a player save has been loaded.</summary>
+ internal static bool PlayerNull => !Game1.hasLoadedGame || Game1.player == null || string.IsNullOrEmpty(Game1.player.name);
+
/*********
** Protected methods