summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'StardewModdingAPI/Entities')
-rw-r--r--StardewModdingAPI/Entities/SCharacter.cs4
-rw-r--r--StardewModdingAPI/Entities/SFarm.cs4
-rw-r--r--StardewModdingAPI/Entities/SFarmAnimal.cs4
-rw-r--r--StardewModdingAPI/Entities/SNpc.cs4
-rw-r--r--StardewModdingAPI/Entities/SPlayer.cs50
5 files changed, 33 insertions, 33 deletions
diff --git a/StardewModdingAPI/Entities/SCharacter.cs b/StardewModdingAPI/Entities/SCharacter.cs
index 39e4f9c8..2d941d55 100644
--- a/StardewModdingAPI/Entities/SCharacter.cs
+++ b/StardewModdingAPI/Entities/SCharacter.cs
@@ -1,6 +1,6 @@
namespace StardewModdingAPI.Entities
{
- class SCharacter
+ internal class SCharacter
{
}
-}
+} \ No newline at end of file
diff --git a/StardewModdingAPI/Entities/SFarm.cs b/StardewModdingAPI/Entities/SFarm.cs
index 4895df7e..c6c64681 100644
--- a/StardewModdingAPI/Entities/SFarm.cs
+++ b/StardewModdingAPI/Entities/SFarm.cs
@@ -1,6 +1,6 @@
namespace StardewModdingAPI.Entities
{
- class SFarm
+ internal class SFarm
{
}
-}
+} \ No newline at end of file
diff --git a/StardewModdingAPI/Entities/SFarmAnimal.cs b/StardewModdingAPI/Entities/SFarmAnimal.cs
index 8bd99e1c..fb8ee267 100644
--- a/StardewModdingAPI/Entities/SFarmAnimal.cs
+++ b/StardewModdingAPI/Entities/SFarmAnimal.cs
@@ -1,6 +1,6 @@
namespace StardewModdingAPI.Entities
{
- class SFarmAnimal
+ internal class SFarmAnimal
{
}
-}
+} \ No newline at end of file
diff --git a/StardewModdingAPI/Entities/SNpc.cs b/StardewModdingAPI/Entities/SNpc.cs
index 612c9c89..727dcff7 100644
--- a/StardewModdingAPI/Entities/SNpc.cs
+++ b/StardewModdingAPI/Entities/SNpc.cs
@@ -1,6 +1,6 @@
namespace StardewModdingAPI.Entities
{
- class SNpc
+ internal class SNpc
{
}
-}
+} \ No newline at end of file
diff --git a/StardewModdingAPI/Entities/SPlayer.cs b/StardewModdingAPI/Entities/SPlayer.cs
index c74ba461..d464cded 100644
--- a/StardewModdingAPI/Entities/SPlayer.cs
+++ b/StardewModdingAPI/Entities/SPlayer.cs
@@ -1,33 +1,33 @@
-using System.Collections.Generic;
-using StardewModdingAPI.Inheritance;
+using System;
+using System.Collections.Generic;
using StardewValley;
namespace StardewModdingAPI.Entities
{
- public static class SPlayer
+ /// <summary>
+ /// Static class for intergrating with the player
+ /// </summary>
+ public class SPlayer
{
- public static List<Farmer> AllFarmers
- {
- get
- {
- return SGame.getAllFarmers();
- }
- }
+ /// <summary>
+ /// Calls 'getAllFarmers' in Game1
+ /// </summary>
+ public static List<Farmer> AllFarmers => Game1.getAllFarmers();
- public static Farmer CurrentFarmer
- {
- get
- {
- return SGame.player;
- }
- }
+ /// <summary>
+ /// Do not use.
+ /// </summary>
+ [Obsolete("Use 'Player' instead.")]
+ public static Farmer CurrentFarmer => Game1.player;
- public static GameLocation CurrentFarmerLocation
- {
- get
- {
- return SGame.player.currentLocation;
- }
- }
+ /// <summary>
+ /// Gets the current player from Game1
+ /// </summary>
+ public static Farmer Player => Game1.player;
+
+ /// <summary>
+ /// Gets the player's current location from Game1
+ /// </summary>
+ public static GameLocation CurrentFarmerLocation => Player.currentLocation;
}
-}
+} \ No newline at end of file