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

            if (Nickname.Length != 0)
            {
                hash ^= Nickname.GetHashCode();
            }
            if (Heart != 0)
            {
                hash ^= Heart.GetHashCode();
            }
            if (Coin != 0L)
            {
                hash ^= Coin.GetHashCode();
            }
            if (Ruby != 0L)
            {
                hash ^= Ruby.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Exp != 0L)
            {
                hash ^= Exp.GetHashCode();
            }
            if (HighScore != 0L)
            {
                hash ^= HighScore.GetHashCode();
            }
            if (CurrentDeck.Length != 0)
            {
                hash ^= CurrentDeck.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }