Esempio n. 1
0
 public void MergeFrom(PreFab other)
 {
     if (other == null)
     {
         return;
     }
     if (other.NodeSize != 0)
     {
         NodeSize = other.NodeSize;
     }
     if (other.startingPoint_ != null)
     {
         if (startingPoint_ == null)
         {
             startingPoint_ = new global::Basic_Pathfinder.PreFab.Location();
         }
         StartingPoint.MergeFrom(other.StartingPoint);
     }
     if (other.goalPoint_ != null)
     {
         if (goalPoint_ == null)
         {
             goalPoint_ = new global::Basic_Pathfinder.PreFab.Location();
         }
         GoalPoint.MergeFrom(other.GoalPoint);
     }
     prefab_.Add(other.prefab_);
 }
Esempio n. 2
0
 public void MergeFrom(Obs other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pos_ != null)
     {
         if (pos_ == null)
         {
             pos_ = new global::Basic_Pathfinder.PreFab.Location();
         }
         Pos.MergeFrom(other.Pos);
     }
 }
Esempio n. 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    NodeSize = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (startingPoint_ == null)
                    {
                        startingPoint_ = new global::Basic_Pathfinder.PreFab.Location();
                    }
                    input.ReadMessage(startingPoint_);
                    break;
                }

                case 26: {
                    if (goalPoint_ == null)
                    {
                        goalPoint_ = new global::Basic_Pathfinder.PreFab.Location();
                    }
                    input.ReadMessage(goalPoint_);
                    break;
                }

                case 34: {
                    prefab_.AddEntriesFrom(input, _repeated_prefab_codec);
                    break;
                }
                }
            }
        }
Esempio n. 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (pos_ == null)
                    {
                        pos_ = new global::Basic_Pathfinder.PreFab.Location();
                    }
                    input.ReadMessage(pos_);
                    break;
                }
                }
            }
        }