Exemplo n.º 1
0
 public void MergeFrom(S2C other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Cmd != global::Com.Eyu.UnitySocketLibrary.Command.Knull)
     {
         Cmd = other.Cmd;
     }
     if (other.ReqId != 0)
     {
         ReqId = other.ReqId;
     }
     if (other.Code != 0)
     {
         Code = other.Code;
     }
     if (other.login_ != null)
     {
         if (login_ == null)
         {
             Login = new global::Com.Eyu.UnitySocketLibrary.LoginResp();
         }
         Login.MergeFrom(other.Login);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
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: {
                    Cmd = (global::Com.Eyu.UnitySocketLibrary.Command)input.ReadEnum();
                    break;
                }

                case 16: {
                    ReqId = input.ReadInt32();
                    break;
                }

                case 24: {
                    Code = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (login_ == null)
                    {
                        Login = new global::Com.Eyu.UnitySocketLibrary.LoginResp();
                    }
                    input.ReadMessage(Login);
                    break;
                }
                }
            }
        }