Beispiel #1
0
 public Proposal GetOutgoingProposal()
 {
     if (proposals.TryGetValue(Game1.player.UniqueMultiplayerID, out Proposal proposal))
     {
         return(proposal);
     }
     return(null);
 }
Beispiel #2
0
        private bool WasPetToday(Pet pet)
        {
            NetLongDictionary <int, NetInt> lastPettedDays = _helper.Reflection.GetField <NetLongDictionary <int, NetInt> >(pet, "lastPetDay").GetValue();

            return(lastPettedDays.TryGetValue(Game1.player.UniqueMultiplayerID, out int lastDay) && lastDay == Game1.Date.TotalDays);
        }