示例#1
0
        /// <summary>
        /// needed for "Equals"
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + X.GetHashCode();
            hash = (hash * 7) + Y.GetHashCode();
            hash = (hash * 7) + Z.GetHashCode();
            hash = (hash * 7) + XR.GetHashCode();
            hash = (hash * 7) + YR.GetHashCode();
            hash = (hash * 7) + LT.GetHashCode();
            hash = (hash * 7) + RT.GetHashCode();
            hash = (hash * 7) + DpadDirection.GetHashCode();
            hash = (hash * 7) + buttons.GetHashCode();
            return(hash);
        }
示例#2
0
 public override int GetHashCode()
 {
     return(LT.GetHashCode() ^ RB.GetHashCode());
 }