Пример #1
0
    public void MergeFrom(pb::CodedInputStream input)
    {
        uint tag;

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

            case 10: {
                if (linear_ == null)
                {
                    linear_ = new global::Vector3();
                }
                input.ReadMessage(linear_);
                break;
            }

            case 18: {
                if (angular_ == null)
                {
                    angular_ = new global::Vector3();
                }
                input.ReadMessage(angular_);
                break;
            }
            }
        }
    }
Пример #2
0
    public void MergeFrom(pb::CodedInputStream input)
    {
        uint tag;

        while ((tag = input.ReadTag()) != 0)
        {
            switch (tag)
            {
            default:
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                break;

            case 10: {
                EntityUUID = input.ReadString();
                break;
            }

            case 18: {
                if (position_ == null)
                {
                    Position = new global::Vector3();
                }
                input.ReadMessage(Position);
                break;
            }
            }
        }
    }
Пример #3
0
 public void MergeFrom(StopMoveINF other)
 {
     if (other == null)
     {
         return;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             Position = new global::Vector3();
         }
         Position.MergeFrom(other.Position);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #4
0
 public void MergeFrom(NearEntity other)
 {
     if (other == null)
     {
         return;
     }
     if (other.EntityUUID.Length != 0)
     {
         EntityUUID = other.EntityUUID;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             Position = new global::Vector3();
         }
         Position.MergeFrom(other.Position);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #5
0
 public void MergeFrom(MoveNTF other)
 {
     if (other == null)
     {
         return;
     }
     if (other.EntityUUID.Length != 0)
     {
         EntityUUID = other.EntityUUID;
     }
     if (other.to_ != null)
     {
         if (to_ == null)
         {
             To = new global::Vector3();
         }
         To.MergeFrom(other.To);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #6
0
 public void MergeFrom(Twist other)
 {
     if (other == null)
     {
         return;
     }
     if (other.linear_ != null)
     {
         if (linear_ == null)
         {
             linear_ = new global::Vector3();
         }
         Linear.MergeFrom(other.Linear);
     }
     if (other.angular_ != null)
     {
         if (angular_ == null)
         {
             angular_ = new global::Vector3();
         }
         Angular.MergeFrom(other.Angular);
     }
 }