コード例 #1
0
 public void MergeFrom(PathTimeObstacle other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ObstacleId.Length != 0)
     {
         ObstacleId = other.ObstacleId;
     }
     if (other.bottomLeft_ != null)
     {
         if (bottomLeft_ == null)
         {
             bottomLeft_ = new global::Apollo.Planning.PathTimePoint();
         }
         BottomLeft.MergeFrom(other.BottomLeft);
     }
     if (other.upperLeft_ != null)
     {
         if (upperLeft_ == null)
         {
             upperLeft_ = new global::Apollo.Planning.PathTimePoint();
         }
         UpperLeft.MergeFrom(other.UpperLeft);
     }
     if (other.upperRight_ != null)
     {
         if (upperRight_ == null)
         {
             upperRight_ = new global::Apollo.Planning.PathTimePoint();
         }
         UpperRight.MergeFrom(other.UpperRight);
     }
     if (other.bottomRight_ != null)
     {
         if (bottomRight_ == null)
         {
             bottomRight_ = new global::Apollo.Planning.PathTimePoint();
         }
         BottomRight.MergeFrom(other.BottomRight);
     }
     if (other.TimeLower != 0D)
     {
         TimeLower = other.TimeLower;
     }
     if (other.TimeUpper != 0D)
     {
         TimeUpper = other.TimeUpper;
     }
     if (other.PathLower != 0D)
     {
         PathLower = other.PathLower;
     }
     if (other.PathUpper != 0D)
     {
         PathUpper = other.PathUpper;
     }
 }