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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    code_ = (global::Msg.ResponseCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (err_ == null)
                    {
                        err_ = new global::Msg.Error();
                    }
                    input.ReadMessage(err_);
                    break;
                }

                case 26: {
                    skills_.AddEntriesFrom(input, _repeated_skills_codec);
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(SkillUpgradeResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Code != 0)
     {
         Code = other.Code;
     }
     if (other.err_ != null)
     {
         if (err_ == null)
         {
             err_ = new global::Msg.Error();
         }
         Err.MergeFrom(other.Err);
     }
     if (other.skill_ != null)
     {
         if (skill_ == null)
         {
             skill_ = new global::Msg.Skill();
         }
         Skill.MergeFrom(other.Skill);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#3
0
 public void MergeFrom(SkillResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Code != 0)
     {
         Code = other.Code;
     }
     if (other.err_ != null)
     {
         if (err_ == null)
         {
             err_ = new global::Msg.Error();
         }
         Err.MergeFrom(other.Err);
     }
     skills_.Add(other.skills_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }