Пример #1
0
 public void MergeFrom(SrvRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.MethodId != global::Lspb.SrvMsgType.ErrorClientType)
     {
         MethodId = other.MethodId;
     }
     if (other.Result != global::Lspb.Result.Success)
     {
         Result = other.Result;
     }
     if (other.ErrStr.Length != 0)
     {
         ErrStr = other.ErrStr;
     }
     if (other.srvEnterRoom_ != null)
     {
         if (srvEnterRoom_ == null)
         {
             SrvEnterRoom = new global::Lspb.SrvEnterRoom();
         }
         SrvEnterRoom.MergeFrom(other.SrvEnterRoom);
     }
     if (other.srvInitOver_ != null)
     {
         if (srvInitOver_ == null)
         {
             SrvInitOver = new global::Lspb.SrvInitOver();
         }
         SrvInitOver.MergeFrom(other.SrvInitOver);
     }
     if (other.bGameInit_ != null)
     {
         if (bGameInit_ == null)
         {
             BGameInit = new global::Lspb.BGameInit();
         }
         BGameInit.MergeFrom(other.BGameInit);
     }
     if (other.bGameStart_ != null)
     {
         if (bGameStart_ == null)
         {
             BGameStart = new global::Lspb.BGameStart();
         }
         BGameStart.MergeFrom(other.BGameStart);
     }
     if (other.bGameFrame_ != null)
     {
         if (bGameFrame_ == null)
         {
             BGameFrame = new global::Lspb.BGameFrame();
         }
         BGameFrame.MergeFrom(other.BGameFrame);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }