Made functionality to get first, second, third, and fourth player.

This commit is contained in:
2018-05-08 18:18:53 -07:00
parent 947e0c557f
commit a0ddb5994b
1 changed files with 26 additions and 0 deletions

View File

@ -229,5 +229,31 @@ namespace ModdedUtilitiesNetworking.Framework
} }
public static Farmer getServerHost()
{
return Game1.serverHost.Value;
}
public static Farmer getPlayerOne()
{
return getServerHost();
}
public static Farmer getPlayerTwo()
{
return Game1.otherFarmers.ElementAt(0).Value;
}
public static Farmer getPlayerThree()
{
return Game1.otherFarmers.ElementAt(1).Value;
}
public static Farmer getPlayerFour()
{
return Game1.otherFarmers.ElementAt(2).Value;
}
} }
} }