Example #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 10: {
                    if (opts_ == null)
                    {
                        opts_ = new global::Protos.MsgOpts();
                    }
                    input.ReadMessage(opts_);
                    break;
                }

                case 16: {
                    result_ = (global::Protos.CS2GS_GCLoginRet.Types.EResult)input.ReadEnum();
                    break;
                }

                case 24: {
                    gcState_ = (global::Protos.CS2GS_GCLoginRet.Types.EGCCState)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (userInfo_ == null)
                    {
                        userInfo_ = new global::Protos.G_UserInfo();
                    }
                    input.ReadMessage(userInfo_);
                    break;
                }

                case 40: {
                    GcNID = input.ReadUInt64();
                    break;
                }

                case 50: {
                    BsIP = input.ReadString();
                    break;
                }

                case 56: {
                    BsPort = input.ReadInt32();
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(GS2GC_LoginRet other)
 {
     if (other == null)
     {
         return;
     }
     if (other.opts_ != null)
     {
         if (opts_ == null)
         {
             opts_ = new global::Protos.MsgOpts();
         }
         Opts.MergeFrom(other.Opts);
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.GcState != 0)
     {
         GcState = other.GcState;
     }
     if (other.userInfo_ != null)
     {
         if (userInfo_ == null)
         {
             userInfo_ = new global::Protos.G_UserInfo();
         }
         UserInfo.MergeFrom(other.UserInfo);
     }
     if (other.GcNID != 0UL)
     {
         GcNID = other.GcNID;
     }
     if (other.BsIP.Length != 0)
     {
         BsIP = other.BsIP;
     }
     if (other.BsPort != 0)
     {
         BsPort = other.BsPort;
     }
     if (other.Defs.Length != 0)
     {
         Defs = other.Defs;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }