Example #1
0
        public bool Equals(VrmBlendShapeGroup other)
        {
            if (name != other.name)
            {
                return(false);
            }

            if (presetName != other.presetName)
            {
                return(false);
            }

            if (!EqualUtil.IsEqual(binds, other.binds))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(materialValues, other.materialValues))
            {
                return(false);
            }

            if (isBinary != other.isBinary)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
        public bool Equals(GltfScene other)
        {
            if (!EqualUtil.IsEqual(nodes, other.nodes))
            {
                return(false);
            }

            return(true);
        }
 public bool Equals(VrmSecondaryAnimationColliderGroup other)
 {
     if (node != other.node)
     {
         return(false);
     }
     if (!EqualUtil.IsEqual(colliders, other.colliders))
     {
         return(false);
     }
     return(true);
 }
Example #4
0
        public bool Equals(VrmDegreeMap other)
        {
            if (other is null)
            {
                return false;
            }

            if (!EqualUtil.IsEqual(curve, other.curve)) return false;
            if (xRange != other.xRange) return false;
            if (yRange != other.yRange) return false;

            return true;
        }
Example #5
0
        public bool Equals(VrmBlendShapeMaster other)
        {
            if (other is null)
            {
                return(false);
            }

            if (!EqualUtil.IsEqual(blendShapeGroups, other.blendShapeGroups))
            {
                return(false);
            }

            return(true);
        }
        public bool Equals(VrmSecondaryAnimation other)
        {
            if (other is null)
            {
                return(false);
            }

            if (!EqualUtil.IsEqual(colliderGroups, other.colliderGroups))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(boneGroups, other.boneGroups))
            {
                return(false);
            }
            return(true);
        }
Example #7
0
        public bool Equals(VrmFirstPerson other)
        {
            if (other is null)
            {
                return false;
            }

            if (firstPersonBone != other.firstPersonBone) return false;
            if (firstPersonBoneOffset != other.firstPersonBoneOffset) return false;
            if (!EqualUtil.IsEqual(meshAnnotations, other.meshAnnotations)) return false;
            if (lookAtTypeName != other.lookAtTypeName) return false;
            if (lookAtHorizontalInner != other.lookAtHorizontalInner) return false;
            if (lookAtHorizontalOuter != other.lookAtHorizontalOuter) return false;
            if (lookAtVerticalDown != other.lookAtVerticalDown) return false;
            if (lookAtVerticalUp != other.lookAtVerticalUp) return false;

            return true;
        }
Example #8
0
        public bool Equals(VrmMaterialValueBind other)
        {
            if (materialName != other.materialName)
            {
                return(false);
            }

            if (propertyName != other.propertyName)
            {
                return(false);
            }

            if (!EqualUtil.IsEqual(targetValue, other.targetValue))
            {
                return(false);
            }

            return(true);
        }
Example #9
0
        public bool Equals(VrmMaterial other)
        {
            if (other == null)
            {
                return(false);
            }

            if (name != other.name)
            {
                return(false);
            }
            if (shader != other.shader)
            {
                return(false);
            }
            if (renderQueue != other.renderQueue)
            {
                return(false);
            }

            if (!EqualUtil.IsEqual(floatProperties, other.floatProperties))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(vectorProperties, other.vectorProperties))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(textureProperties, other.textureProperties))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(keywordMap, other.keywordMap))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(tagMap, other.tagMap))
            {
                return(false);
            }

            return(true);
        }
Example #10
0
        public bool Equals(VrmSecondaryAnimationGroup other)
        {
            if (comment != other.comment)
            {
                return(false);
            }
            if (stiffiness != other.stiffiness)
            {
                return(false);
            }
            if (gravityPower != other.gravityPower)
            {
                return(false);
            }
            if (gravityDir != other.gravityDir)
            {
                return(false);
            }
            if (dragForce != other.dragForce)
            {
                return(false);
            }
            if (center != other.center)
            {
                return(false);
            }
            if (hitRadius != other.hitRadius)
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(bones, other.bones))
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(colliderGroups, other.colliderGroups))
            {
                return(false);
            }

            return(true);
        }
Example #11
0
        // empty schemas
        // public GltfNodeExtensions extensions;

        // public GltfExtraNode extras = new GltfExtraNode();

        public bool Equals(GltfNode other)
        {
            if (string.IsNullOrEmpty(name))
            {
                // 処理中に名前を自動で付与している場合あり
                // OK
            }
            else if (name != other.name)
            {
                return(false);
            }

            if (
                new TRS(matrix, translation, rotation, scale)
                != new TRS(other.matrix, other.translation, other.rotation, other.scale))
            {
                return(false);
            }

            if (mesh != other.mesh)
            {
                return(false);
            }
            if (skin != other.skin)
            {
                return(false);
            }
            if (!EqualUtil.IsEqual(weights, other.weights))
            {
                return(false);
            }
            if (camera != other.camera)
            {
                return(false);
            }

            return(true);
        }