/// <summary>
 /// Returns Hash value of this serializable class
 /// </summary>
 /// <returns></returns>
 public override long GetHash()
 {
     // Combine the Hashes of all variables
     return(HashUtility.CombineHashes(
                this.m.GetHashCode()
                ));
 }
 /// <summary>
 /// Returns Hash value of this serializable class
 /// </summary>
 /// <returns></returns>
 public override long GetHash()
 {
     // Combine the Hashes of all variables
     return(HashUtility.CombineHashes(
                this.d.GetHashCode(),
                this.n.GetHashCode(),
                this.f.GetHashCode(),
                this.v.GetHashCode(),
                this.b.GetHashCode(),
                this.c.GetHashCode()
                ));
 }
        /// <summary>
        /// Returns Hash value of this serializable class
        /// </summary>
        /// <returns></returns>
        public override long GetHash()
        {
            // Combine the Hashes of all variables
            long hash = HashUtility.CombineHashes(
                this.w.GetHashCode(),
                this.h.GetHashCode()
                );

            if (this.p != null)
            {
                foreach (Color color in this.p)
                {
                    hash = HashUtility.Combine2Hashes(hash, color.GetHashCode());
                }
            }

            return(hash);
        }
        /// <summary>
        /// Returns Hash value of this serializable class
        /// </summary>
        /// <returns></returns>
        public override long GetHash()
        {
            // Combine the Hashes of all variables
            long hash = HashUtility.CombineHashes(
                this.c.GetHashCode(),
                this.t.GetHashCode(),
                this.o.GetHashCode(),
                this.s.GetHashCode(),
                this.n.GetHashCode()
                );

            foreach (string keyword in this.k)
            {
                hash = HashUtility.Combine2Hashes(hash, keyword.GetHashCode());
            }

            return(hash);
        }
Esempio n. 5
0
        /// <summary>
        /// Returns Hash value of this serializable class
        /// </summary>
        /// <returns></returns>
        public override long GetHash()
        {
            // Combine the Hashes of all variables
            long hash = HashUtility.CombineHashes(
                this.m.GetHashCode(),
                this.w.GetHashCode(),
                this.l.GetHashCode(),
                this.ca.GetHashCode(),
                this.co.GetHashCode(),
                this.t.GetHashCode(),
                this.cs.GetHashCode(),
                this.ce.GetHashCode()
                );

            foreach (Vector3 position in this.p)
            {
                hash = HashUtility.Combine2Hashes(hash, position.GetHashCode());
            }

            return(hash);
        }
Esempio n. 6
0
        /// <summary>
        /// Returns Hash value of this serializable class
        /// </summary>
        /// <returns></returns>
        public override long GetHash()
        {
            // Combine the Hashes of all variables
            long hash = 17;

            foreach (Vector3 val in this.v)
            {
                hash = HashUtility.Combine2Hashes(hash, val.GetHashCode());
            }
            foreach (Vector3 val in this.n)
            {
                hash = HashUtility.Combine2Hashes(hash, val.GetHashCode());
            }
            foreach (Vector2 val in this.u)
            {
                hash = HashUtility.Combine2Hashes(hash, val.GetHashCode());
            }
            foreach (int val in this.t)
            {
                hash = HashUtility.Combine2Hashes(hash, val.GetHashCode());
            }
            return(hash);
        }