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

            if (TotalCount != 0)
            {
                hash ^= TotalCount.GetHashCode();
            }
            if (ItemCount != 0)
            {
                hash ^= ItemCount.GetHashCode();
            }
            if (StartIndex != 0)
            {
                hash ^= StartIndex.GetHashCode();
            }
            if (EndIndex != 0)
            {
                hash ^= EndIndex.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = -596621668;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + IsEmpty.GetHashCode();
            hashCode = hashCode * -1521134295 + BlockId.GetHashCode();
            hashCode = hashCode * -1521134295 + ItemCount.GetHashCode();
            hashCode = hashCode * -1521134295 + ItemDamage.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <NbtFile> .Default.GetHashCode(NBT);

            return(hashCode);
        }
        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);
        }
Exemple #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemCount != 0)
            {
                hash ^= ItemCount.GetHashCode();
            }
            if (BonusCount != 0)
            {
                hash ^= BonusCount.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemCount != 0)
            {
                hash ^= ItemCount.GetHashCode();
            }
            if (BonusCount != 0)
            {
                hash ^= BonusCount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }