38 lines
776 B
C#
38 lines
776 B
C#
using StardewModdingAPI.Inheritance;
|
|
using StardewValley;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StardewModdingAPI.Entities
|
|
{
|
|
public static class SPlayer
|
|
{
|
|
public static List<Farmer> AllFarmers
|
|
{
|
|
get
|
|
{
|
|
return SGame.getAllFarmers();
|
|
}
|
|
}
|
|
|
|
public static Farmer CurrentFarmer
|
|
{
|
|
get
|
|
{
|
|
return SGame.player;
|
|
}
|
|
}
|
|
|
|
public static GameLocation CurrentFarmerLocation
|
|
{
|
|
get
|
|
{
|
|
return SGame.player.currentLocation;
|
|
}
|
|
}
|
|
}
|
|
}
|