Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= offsetFromHeadBone_.GetHashCode();
            if (LookAtType != global::VrmProtobuf.LookAt.Types.LookAtType.Bone)
            {
                hash ^= LookAtType.GetHashCode();
            }
            if (lookAtHorizontalInner_ != null)
            {
                hash ^= LookAtHorizontalInner.GetHashCode();
            }
            if (lookAtHorizontalOuter_ != null)
            {
                hash ^= LookAtHorizontalOuter.GetHashCode();
            }
            if (lookAtVerticalDown_ != null)
            {
                hash ^= LookAtVerticalDown.GetHashCode();
            }
            if (lookAtVerticalUp_ != null)
            {
                hash ^= LookAtVerticalUp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(LookAt other)
 {
     if (other == null)
     {
         return;
     }
     offsetFromHeadBone_.Add(other.offsetFromHeadBone_);
     if (other.LookAtType != global::VrmProtobuf.LookAt.Types.LookAtType.Bone)
     {
         LookAtType = other.LookAtType;
     }
     if (other.lookAtHorizontalInner_ != null)
     {
         if (lookAtHorizontalInner_ == null)
         {
             LookAtHorizontalInner = new global::VrmProtobuf.LookAtRangeMap();
         }
         LookAtHorizontalInner.MergeFrom(other.LookAtHorizontalInner);
     }
     if (other.lookAtHorizontalOuter_ != null)
     {
         if (lookAtHorizontalOuter_ == null)
         {
             LookAtHorizontalOuter = new global::VrmProtobuf.LookAtRangeMap();
         }
         LookAtHorizontalOuter.MergeFrom(other.LookAtHorizontalOuter);
     }
     if (other.lookAtVerticalDown_ != null)
     {
         if (lookAtVerticalDown_ == null)
         {
             LookAtVerticalDown = new global::VrmProtobuf.LookAtRangeMap();
         }
         LookAtVerticalDown.MergeFrom(other.LookAtVerticalDown);
     }
     if (other.lookAtVerticalUp_ != null)
     {
         if (lookAtVerticalUp_ == null)
         {
             LookAtVerticalUp = new global::VrmProtobuf.LookAtRangeMap();
         }
         LookAtVerticalUp.MergeFrom(other.LookAtVerticalUp);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }