Exemplo n.º 1
0
        //public List<string> AbilityPackagesTrained { get; set; }

        public override int GetHashCode()
        {
            int hash = Name.GetHashCode();

            if (Title != null)
            {
                hash ^= Title.GetHashCode();
            }
            hash ^= ClassSpec.Id.GetHashCode();
            hash ^= MinLevel.GetHashCode();
            hash ^= MaxLevel.GetHashCode();
            hash ^= Faction.GetHashCode();
            hash ^= Toughness.GetHashCode();
            hash ^= DifficultyFlags.GetHashCode();
            if (Codex != null)
            {
                hash ^= Codex.Id.GetHashCode();
            }
            hash ^= ProfessionTrained.GetHashCode();
            if (ConversationFqn != null)
            {
                hash ^= ConversationFqn.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int result = NodeId.GetHashCode();

            result ^= Name.GetHashCode();
            if (Codex != null)
            {
                result ^= Codex.Id.GetHashCode();
            }
            result ^= RequiredProfession.GetHashCode();
            result ^= RequiredProfessionLevel.GetHashCode();
            result ^= IsBank.GetHashCode();
            result ^= IsMailbox.GetHashCode();
            result ^= IsAuctionHouse.GetHashCode();
            result ^= IsEnhancementStation.GetHashCode();
            result ^= AuctionNetwork.GetHashCode();
            result ^= Faction.GetHashCode();
            result ^= LootLevel.GetHashCode();
            result ^= LootPackageId.GetHashCode();
            result ^= WonkaPackageId.GetHashCode();
            result ^= DifficultyFlags.GetHashCode();
            result ^= Category.GetHashCode();

            return(result);
        }