コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Xp != 0L)
            {
                hash ^= Xp.GetHashCode();
            }
            if (Avatar != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (ItemCount != 0L)
            {
                hash ^= ItemCount.GetHashCode();
            }
            if (PokemonCount != 0L)
            {
                hash ^= PokemonCount.GetHashCode();
            }
            if (PokecoinCount != 0L)
            {
                hash ^= PokecoinCount.GetHashCode();
            }
            if (Team != 0)
            {
                hash ^= Team.GetHashCode();
            }
            if (CatchStreak != 0)
            {
                hash ^= CatchStreak.GetHashCode();
            }
            if (SpinStreak != 0)
            {
                hash ^= SpinStreak.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Xp != 0L)
            {
                hash ^= Xp.GetHashCode();
            }
            hash ^= returnedRewards_.GetHashCode();
            if (oneTimeRewards_ != null)
            {
                hash ^= OneTimeRewards.GetHashCode();
            }
            if (LevelDesc.Length != 0)
            {
                hash ^= LevelDesc.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }