Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CreationTime != 0L)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Team != 0)
            {
                hash ^= Team.GetHashCode();
            }
            if (Tutorial.Length != 0)
            {
                hash ^= Tutorial.GetHashCode();
            }
            if (avatar_ != null)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (PokeStorage != 0)
            {
                hash ^= PokeStorage.GetHashCode();
            }
            if (ItemStorage != 0)
            {
                hash ^= ItemStorage.GetHashCode();
            }
            if (dailyBonus_ != null)
            {
                hash ^= DailyBonus.GetHashCode();
            }
            if (Badge.Length != 0)
            {
                hash ^= Badge.GetHashCode();
            }
            if (settings_ != null)
            {
                hash ^= Settings.GetHashCode();
            }
            hash ^= currency_.GetHashCode();
            return(hash);
        }