Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    TimeOfDay = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (player_ == null)
                    {
                        player_ = new global::SaveAnywhere.SaveData.Farmer();
                    }
                    input.ReadMessage(player_);
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(Game1 other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TimeOfDay != 0)
     {
         TimeOfDay = other.TimeOfDay;
     }
     if (other.player_ != null)
     {
         if (player_ == null)
         {
             player_ = new global::SaveAnywhere.SaveData.Farmer();
         }
         Player.MergeFrom(other.Player);
     }
 }