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

            if (Result.Length != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (ItemID != 0)
            {
                hash ^= ItemID.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (Price != 0)
            {
                hash ^= Price.GetHashCode();
            }
            if (GoldNumber != 0)
            {
                hash ^= GoldNumber.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            var hashCode = -1919740922;

            hashCode = hashCode * -1521134295 + ItemID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ItemName);

            return(hashCode);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            var hashCode = 2036580019;

            hashCode = hashCode * -1521134295 + ItemID.GetHashCode();
            hashCode = hashCode * -1521134295 + Amount.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Itemname);

            hashCode = hashCode * -1521134295 + Price.GetHashCode();
            return(hashCode);
        }
コード例 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemID != 0)
            {
                hash ^= ItemID.GetHashCode();
            }
            if (Value != 0F)
            {
                hash ^= Value.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Id.GetHashCode();
                hashCode = (hashCode * 397) ^ ItemID.GetHashCode();
                hashCode = (hashCode * 397) ^ CategoryID.GetHashCode();
                if (Item != null)
                {
                    hashCode = (hashCode * 397) ^ Item.GetHashCode();
                }

                if (Category != null)
                {
                    hashCode = (hashCode * 397) ^ Category.GetHashCode();
                }
                return(hashCode);
            }
        }
コード例 #6
0
 public override int GetHashCode()
 {
     return(ItemID.GetHashCode());
 }
コード例 #7
0
ファイル: ItemPackets.cs プロジェクト: Zakkgard/CypherCore
 public override int GetHashCode()
 {
     return(ItemID.GetHashCode() ^ RandomPropertiesSeed.GetHashCode() ^
            RandomPropertiesID.GetHashCode() ^ ItemBonus.GetHashCode() ^ Modifications.GetHashCode());
 }
コード例 #8
0
ファイル: ItemPackets.cs プロジェクト: zgbjmy2009/CypherCore
 public override int GetHashCode()
 {
     return(ItemID.GetHashCode() ^ ItemBonus.GetHashCode() ^ Modifications.GetHashCode());
 }
コード例 #9
0
 public override int GetHashCode()
 {
     return(item.GetHashCode() + need.GetHashCode());
 }