Exemple #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (p0_ == null)
                    {
                        p0_ = new global::SC2APIProtocol.PointI();
                    }
                    input.ReadMessage(p0_);
                    break;
                }

                case 18: {
                    if (p1_ == null)
                    {
                        p1_ = new global::SC2APIProtocol.PointI();
                    }
                    input.ReadMessage(p1_);
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(RectangleI other)
 {
     if (other == null)
     {
         return;
     }
     if (other.p0_ != null)
     {
         if (p0_ == null)
         {
             p0_ = new global::SC2APIProtocol.PointI();
         }
         P0.MergeFrom(other.P0);
     }
     if (other.p1_ != null)
     {
         if (p1_ == null)
         {
             p1_ = new global::SC2APIProtocol.PointI();
         }
         P1.MergeFrom(other.P1);
     }
 }
 public void MergeFrom(RectangleI other)
 {
     if (other == null)
     {
         return;
     }
     if (other.p0_ != null)
     {
         if (p0_ == null)
         {
             p0_ = new global::SC2APIProtocol.PointI();
         }
         P0.MergeFrom(other.P0);
     }
     if (other.p1_ != null)
     {
         if (p1_ == null)
         {
             p1_ = new global::SC2APIProtocol.PointI();
         }
         P1.MergeFrom(other.P1);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }