コード例 #1
0
 public void MergeFrom(StoreItem other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ItemId.Length != 0)
     {
         ItemId = other.ItemId;
     }
     if (other.IsIap != false)
     {
         IsIap = other.IsIap;
     }
     if (other.currencyToBuy_ != null)
     {
         if (currencyToBuy_ == null)
         {
             currencyToBuy_ = new global::POGOProtos.Data.Player.Currency();
         }
         CurrencyToBuy.MergeFrom(other.CurrencyToBuy);
     }
     if (other.yieldsCurrency_ != null)
     {
         if (yieldsCurrency_ == null)
         {
             yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency();
         }
         YieldsCurrency.MergeFrom(other.YieldsCurrency);
     }
     if (other.yieldsItem_ != null)
     {
         if (yieldsItem_ == null)
         {
             yieldsItem_ = new global::POGOProtos.Networking.Platform.Responses.GetStoreItemsResponse.Types.StoreItemInfo();
         }
         YieldsItem.MergeFrom(other.YieldsItem);
     }
     tags_.Add(other.tags_);
     if (other.Unknown7 != 0)
     {
         Unknown7 = other.Unknown7;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
 public void MergeFrom(StoreItem other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ItemId.Length != 0)
     {
         ItemId = other.ItemId;
     }
     if (other.IsIap != false)
     {
         IsIap = other.IsIap;
     }
     if (other.currencyToBuy_ != null)
     {
         if (currencyToBuy_ == null)
         {
             currencyToBuy_ = new global::POGOProtos.Data.Player.Currency();
         }
         CurrencyToBuy.MergeFrom(other.CurrencyToBuy);
     }
     if (other.yieldsCurrency_ != null)
     {
         if (yieldsCurrency_ == null)
         {
             yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency();
         }
         YieldsCurrency.MergeFrom(other.YieldsCurrency);
     }
     if (other.yieldsItem_ != null)
     {
         if (yieldsItem_ == null)
         {
             yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData();
         }
         YieldsItem.MergeFrom(other.YieldsItem);
     }
     tags_.Add(other.tags_);
     if (other.Unknown7 != 0)
     {
         Unknown7 = other.Unknown7;
     }
 }