Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (KeyFrame != 0)
            {
                hash ^= KeyFrame.GetHashCode();
            }
            if (MsgIndex != 0)
            {
                hash ^= MsgIndex.GetHashCode();
            }
            if (PlayerId != 0)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (X != 0F)
            {
                hash ^= X.GetHashCode();
            }
            if (Y != 0F)
            {
                hash ^= Y.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (KeyFrame != 0)
            {
                hash ^= KeyFrame.GetHashCode();
            }
            if (MsgTotal != 0)
            {
                hash ^= MsgTotal.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
 public int GetHashCode(KeyFrame <T> obj) => obj.GetHashCode();