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);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (KeyFrame != 0)
            {
                hash ^= KeyFrame.GetHashCode();
            }
            if (MsgTotal != 0)
            {
                hash ^= MsgTotal.GetHashCode();
            }
            return(hash);
        }
示例#3
0
 public int GetHashCode(KeyFrame <T> obj) => obj.GetHashCode();