Пример #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    DrawCount = input.ReadSInt32();
                    break;
                }

                case 18: {
                    if (consumeItemPB_ == null)
                    {
                        consumeItemPB_ = new global::Com.Proto.DropItemPB();
                    }
                    input.ReadMessage(consumeItemPB_);
                    break;
                }
                }
            }
        }
Пример #2
0
 public void MergeFrom(ConsumeItemPB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.DrawCount != 0)
     {
         DrawCount = other.DrawCount;
     }
     if (other.consumeItemPB_ != null)
     {
         if (consumeItemPB_ == null)
         {
             consumeItemPB_ = new global::Com.Proto.DropItemPB();
         }
         ConsumeItemPB_.MergeFrom(other.ConsumeItemPB_);
     }
 }