public override int GetHashCode()
        {
            int hash = 0;

            unchecked
            {
                hash = curve.GetHashCode();
                hash = 33 * hash + binding.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HoldType != null ? HoldType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (_string != null ? _string.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (_curve != null ? _curve.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (_object != null ? _object.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (_floats != null ? _floats.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int num = 17;

            return(num * 23 + curve.GetHashCode());
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((int)ease * 397) ^ ((ease == Ease.INTERNAL_Custom && curve != null) ? curve.GetHashCode() : 0));
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode() =>
 unchecked ((int)math.hash(new int2(TranslationCurve?.GetHashCode() ?? 0, OrientationCurve?.GetHashCode() ?? 0)));
 public override int GetHashCode()
 {
     return(value != null ? value.GetHashCode() : 0);
 }
Ejemplo n.º 7
0
        private void Save(MaterialProperty prop)
        {
            Debug.Log(prop.textureValue.ToString());
            Texture saved_texture = TextureHelper.SaveTextureAsPNG(texture, PATH.TEXTURES_DIR + "curves/" + curve.GetHashCode() + ".png", null);

            prop.textureValue = saved_texture;
            saved             = true;
        }