From 12bf4fd843be26f89b5fe3415aeec3055c54d786 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 27 Mar 2016 01:09:09 -0400 Subject: someone needs to generate xml doc info im not fuck that shit --- StardewModdingAPI/Entities/SCharacter.cs | 4 +-- StardewModdingAPI/Entities/SFarm.cs | 4 +-- StardewModdingAPI/Entities/SFarmAnimal.cs | 4 +-- StardewModdingAPI/Entities/SNpc.cs | 4 +-- StardewModdingAPI/Entities/SPlayer.cs | 50 +++++++++++++++---------------- 5 files changed, 33 insertions(+), 33 deletions(-) (limited to 'StardewModdingAPI/Entities') 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 + /// + /// Static class for intergrating with the player + /// + public class SPlayer { - public static List AllFarmers - { - get - { - return SGame.getAllFarmers(); - } - } + /// + /// Calls 'getAllFarmers' in Game1 + /// + public static List AllFarmers => Game1.getAllFarmers(); - public static Farmer CurrentFarmer - { - get - { - return SGame.player; - } - } + /// + /// Do not use. + /// + [Obsolete("Use 'Player' instead.")] + public static Farmer CurrentFarmer => Game1.player; - public static GameLocation CurrentFarmerLocation - { - get - { - return SGame.player.currentLocation; - } - } + /// + /// Gets the current player from Game1 + /// + public static Farmer Player => Game1.player; + + /// + /// Gets the player's current location from Game1 + /// + public static GameLocation CurrentFarmerLocation => Player.currentLocation; } -} +} \ No newline at end of file -- cgit