コード例 #1
0
ファイル: TopoGraph.cs プロジェクト: zakirIndia/simulator
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (start_ == null)
                    {
                        start_ = new global::Apollo.Routing.CurvePoint();
                    }
                    input.ReadMessage(start_);
                    break;
                }

                case 18: {
                    if (end_ == null)
                    {
                        end_ = new global::Apollo.Routing.CurvePoint();
                    }
                    input.ReadMessage(end_);
                    break;
                }
                }
            }
        }
コード例 #2
0
ファイル: TopoGraph.cs プロジェクト: zakirIndia/simulator
 public void MergeFrom(CurveRange other)
 {
     if (other == null)
     {
         return;
     }
     if (other.start_ != null)
     {
         if (start_ == null)
         {
             start_ = new global::Apollo.Routing.CurvePoint();
         }
         Start.MergeFrom(other.Start);
     }
     if (other.end_ != null)
     {
         if (end_ == null)
         {
             end_ = new global::Apollo.Routing.CurvePoint();
         }
         End.MergeFrom(other.End);
     }
 }