diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-14 13:11:43 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-14 13:11:43 -0500 |
commit | e804ed5479b3fffbe060e11d31e55499cab842f9 (patch) | |
tree | 78796eb5bf2bc5a54848e802cdd5f69bb6c586a9 /src/StardewModdingAPI/Constants.cs | |
parent | 548cbcecc41e88413885b1fcce7504a627640826 (diff) | |
download | SMAPI-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.cs | 6 |
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 |