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

            if (PokemonId != 0UL)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (Item != 0)
            {
                hash ^= Item.GetHashCode();
            }
            if (PokedexEntryId != 0)
            {
                hash ^= PokedexEntryId.GetHashCode();
            }
            if (PlayerStats != false)
            {
                hash ^= PlayerStats.GetHashCode();
            }
            if (PlayerCurrency != false)
            {
                hash ^= PlayerCurrency.GetHashCode();
            }
            if (PlayerCamera != false)
            {
                hash ^= PlayerCamera.GetHashCode();
            }
            if (InventoryUpgrades != false)
            {
                hash ^= InventoryUpgrades.GetHashCode();
            }
            if (AppliedItems != false)
            {
                hash ^= AppliedItems.GetHashCode();
            }
            if (EggIncubators != false)
            {
                hash ^= EggIncubators.GetHashCode();
            }
            if (PokemonFamilyId != 0)
            {
                hash ^= PokemonFamilyId.GetHashCode();
            }
            if (QuestType != 0)
            {
                hash ^= QuestType.GetHashCode();
            }
            if (AvatarTemplateId.Length != 0)
            {
                hash ^= AvatarTemplateId.GetHashCode();
            }
            if (RaidTickets != false)
            {
                hash ^= RaidTickets.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (item_ != null)
            {
                hash ^= Item.GetHashCode();
            }
            if (pokedexEntry_ != null)
            {
                hash ^= PokedexEntry.GetHashCode();
            }
            if (playerStats_ != null)
            {
                hash ^= PlayerStats.GetHashCode();
            }
            if (playerCurrency_ != null)
            {
                hash ^= PlayerCurrency.GetHashCode();
            }
            if (playerCamera_ != null)
            {
                hash ^= PlayerCamera.GetHashCode();
            }
            if (inventoryUpgrades_ != null)
            {
                hash ^= InventoryUpgrades.GetHashCode();
            }
            if (appliedItems_ != null)
            {
                hash ^= AppliedItems.GetHashCode();
            }
            if (eggIncubators_ != null)
            {
                hash ^= EggIncubators.GetHashCode();
            }
            if (candy_ != null)
            {
                hash ^= Candy.GetHashCode();
            }
            if (quest_ != null)
            {
                hash ^= Quest.GetHashCode();
            }
            if (avatarItem_ != null)
            {
                hash ^= AvatarItem.GetHashCode();
            }
            if (raidTickets_ != null)
            {
                hash ^= RaidTickets.GetHashCode();
            }
            return(hash);
        }