public override int GetHashCode()
        {
            int hash = 1;

            if (metadataTypeCase_ == MetadataTypeOneofCase.Potion)
            {
                hash ^= Potion.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.Wrackspurt)
            {
                hash ^= Wrackspurt.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.FirstTimeCollection)
            {
                hash ^= FirstTimeCollection.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.Challenge)
            {
                hash ^= Challenge.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.SpellGame)
            {
                hash ^= SpellGame.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.ChallengeBonus)
            {
                hash ^= ChallengeBonus.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.ShardConversion)
            {
                hash ^= ShardConversion.GetHashCode();
            }
            if (metadataTypeCase_ == MetadataTypeOneofCase.ChallengeChamberBonus)
            {
                hash ^= ChallengeChamberBonus.GetHashCode();
            }
            hash ^= (int)metadataTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Category != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (DropFreq != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DropFreq);
            }
            if (DropTrainerLevel != 0)
            {
                hash ^= DropTrainerLevel.GetHashCode();
            }
            if (pokeball_ != null)
            {
                hash ^= Pokeball.GetHashCode();
            }
            if (potion_ != null)
            {
                hash ^= Potion.GetHashCode();
            }
            if (revive_ != null)
            {
                hash ^= Revive.GetHashCode();
            }
            if (battle_ != null)
            {
                hash ^= Battle.GetHashCode();
            }
            if (food_ != null)
            {
                hash ^= Food.GetHashCode();
            }
            if (inventoryUpgrade_ != null)
            {
                hash ^= InventoryUpgrade.GetHashCode();
            }
            if (xpBoost_ != null)
            {
                hash ^= XpBoost.GetHashCode();
            }
            if (incense_ != null)
            {
                hash ^= Incense.GetHashCode();
            }
            if (eggIncubator_ != null)
            {
                hash ^= EggIncubator.GetHashCode();
            }
            if (fortModifier_ != null)
            {
                hash ^= FortModifier.GetHashCode();
            }
            if (stardustBoost_ != null)
            {
                hash ^= StardustBoost.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Category != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (DropFreq != 0F)
            {
                hash ^= DropFreq.GetHashCode();
            }
            if (DropTrainerLevel != 0)
            {
                hash ^= DropTrainerLevel.GetHashCode();
            }
            if (pokeball_ != null)
            {
                hash ^= Pokeball.GetHashCode();
            }
            if (potion_ != null)
            {
                hash ^= Potion.GetHashCode();
            }
            if (revive_ != null)
            {
                hash ^= Revive.GetHashCode();
            }
            if (battle_ != null)
            {
                hash ^= Battle.GetHashCode();
            }
            if (food_ != null)
            {
                hash ^= Food.GetHashCode();
            }
            if (inventoryUpgrade_ != null)
            {
                hash ^= InventoryUpgrade.GetHashCode();
            }
            if (xpBoost_ != null)
            {
                hash ^= XpBoost.GetHashCode();
            }
            if (incense_ != null)
            {
                hash ^= Incense.GetHashCode();
            }
            if (eggIncubator_ != null)
            {
                hash ^= EggIncubator.GetHashCode();
            }
            if (fortModifier_ != null)
            {
                hash ^= FortModifier.GetHashCode();
            }
            return(hash);
        }