示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SpecVersion.Length != 0)
            {
                hash ^= SpecVersion.GetHashCode();
            }
            if (meta_ != null)
            {
                hash ^= Meta.GetHashCode();
            }
            if (humanoid_ != null)
            {
                hash ^= Humanoid.GetHashCode();
            }
            if (firstPerson_ != null)
            {
                hash ^= FirstPerson.GetHashCode();
            }
            if (lookAt_ != null)
            {
                hash ^= LookAt.GetHashCode();
            }
            if (blendShape_ != null)
            {
                hash ^= BlendShape.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public void MergeFrom(VRMCVrm other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SpecVersion.Length != 0)
     {
         SpecVersion = other.SpecVersion;
     }
     if (other.meta_ != null)
     {
         if (meta_ == null)
         {
             Meta = new global::VrmProtobuf.Meta();
         }
         Meta.MergeFrom(other.Meta);
     }
     if (other.humanoid_ != null)
     {
         if (humanoid_ == null)
         {
             Humanoid = new global::VrmProtobuf.Humanoid();
         }
         Humanoid.MergeFrom(other.Humanoid);
     }
     if (other.firstPerson_ != null)
     {
         if (firstPerson_ == null)
         {
             FirstPerson = new global::VrmProtobuf.FirstPerson();
         }
         FirstPerson.MergeFrom(other.FirstPerson);
     }
     if (other.lookAt_ != null)
     {
         if (lookAt_ == null)
         {
             LookAt = new global::VrmProtobuf.LookAt();
         }
         LookAt.MergeFrom(other.LookAt);
     }
     if (other.blendShape_ != null)
     {
         if (blendShape_ == null)
         {
             BlendShape = new global::VrmProtobuf.BlendShape();
         }
         BlendShape.MergeFrom(other.BlendShape);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }