From a0ddb5994b4012f682b654957a69049bf0487280 Mon Sep 17 00:00:00 2001 From: Date: Tue, 8 May 2018 18:18:53 -0700 Subject: [PATCH] Made functionality to get first, second, third, and fourth player. --- .../Framework/CustomMultiplayer.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/GeneralMods/ModdedUtilitiesNetworking/Framework/CustomMultiplayer.cs b/GeneralMods/ModdedUtilitiesNetworking/Framework/CustomMultiplayer.cs index c1d482d9..2823e735 100644 --- a/GeneralMods/ModdedUtilitiesNetworking/Framework/CustomMultiplayer.cs +++ b/GeneralMods/ModdedUtilitiesNetworking/Framework/CustomMultiplayer.cs @@ -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; + } + + } }