Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.Time)
            {
                hash ^= Time.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Charges)
            {
                hash ^= Charges.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Profession)
            {
                hash ^= Profession.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Permanent)
            {
                hash ^= Permanent.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Challenge)
            {
                hash ^= Challenge.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Amount.GetHashCode();
                hash = hash * 23 + Currency.GetHashCode();
                hash = hash * 23 + Used.GetHashCode();
                hash = hash * 23 + Multiple.GetHashCode();
                hash = hash * 23 + Title.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Charges.GetHashCode();
                hash = hash * 23 + PaymentURI.GetHashCode();

                return(hash);
            }
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                hashCode += 1000000007 * Type.GetHashCode();
                hashCode += 1000000009 * Class.GetHashCode();
                hashCode += 1000000021 * Slot.GetHashCode();
                hashCode += 1000000033 * BreakRate.GetHashCode();
                hashCode += 1000000087 * Gender.GetHashCode();
                hashCode += 1000000093 * FreeHands.GetHashCode();
                hashCode += 1000000097 * LifePointsBonus.GetHashCode();
                hashCode += 1000000103 * SpellPointsBonus.GetHashCode();
                hashCode += 1000000123 * AttributeType.GetHashCode();
                hashCode += 1000000181 * AttributeBonus.GetHashCode();
                hashCode += 1000000207 * SkillTypeBonus.GetHashCode();
                hashCode += 1000000223 * SkillBonus.GetHashCode();
                hashCode += 1000000241 * PhysicalDamageProtection.GetHashCode();
                hashCode += 1000000271 * PhysicalDamageCaused.GetHashCode();
                hashCode += 1000000289 * AmmunitionType.GetHashCode();
                hashCode += 1000000297 * SkillType1Tax.GetHashCode();
                hashCode += 1000000321 * SkillType2Tax.GetHashCode();
                hashCode += 1000000349 * Skill1Tax.GetHashCode();
                hashCode += 1000000363 * Skill2Tax.GetHashCode();
                hashCode += 1000000403 * TorchIntensity.GetHashCode();
                hashCode += 1000000409 * AmmoAnimation.GetHashCode();
                hashCode += 1000000411 * Spell.GetHashCode();
                hashCode += 1000000427 * SpellID.GetHashCode();
                hashCode += 1000000433 * Charges.GetHashCode();
                hashCode += 1000000439 * NumRecharged.GetHashCode();
                hashCode += 1000000447 * MaxNumRecharged.GetHashCode();
                hashCode += 1000000453 * MaxCharges.GetHashCode();
                hashCode += 1000000459 * Count1.GetHashCode();
                hashCode += 1000000483 * Count2.GetHashCode();
                hashCode += 1000000513 * IconAnim.GetHashCode();
                hashCode += 1000000531 * Weight.GetHashCode();
                hashCode += 1000000579 * Value.GetHashCode();
                hashCode += 1000000007 * Icon.GetHashCode();
                hashCode += 1000000009 * UsingClass.GetHashCode();
                hashCode += 1000000021 * UsingRace.GetHashCode();
            }
            return(hashCode);
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Amount != default(long))
                {
                    hash = hash * 23 + Amount.GetHashCode();
                }
                if (Currency != default(string))
                {
                    hash = hash * 23 + Currency.GetHashCode();
                }
                if (Used != default(bool))
                {
                    hash = hash * 23 + Used.GetHashCode();
                }
                if (Multiple != default(bool))
                {
                    hash = hash * 23 + Multiple.GetHashCode();
                }
                if (Title != default(string))
                {
                    hash = hash * 23 + Title.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Charges != default(ScopedList <Charge>))
                {
                    hash = hash * 23 + Charges.GetHashCode();
                }
                if (PaymentURI != default(string))
                {
                    hash = hash * 23 + PaymentURI.GetHashCode();
                }

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

            if (invoiceId_ != null)
            {
                hash ^= InvoiceId.GetHashCode();
            }
            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (amount_ != null)
            {
                hash ^= Amount.GetHashCode();
            }
            if (payment_ != null)
            {
                hash ^= Payment.GetHashCode();
            }
            if (taxes_ != null)
            {
                hash ^= Taxes.GetHashCode();
            }
            if (fees_ != null)
            {
                hash ^= Fees.GetHashCode();
            }
            if (charges_ != null)
            {
                hash ^= Charges.GetHashCode();
            }
            if (Voided != false)
            {
                hash ^= Voided.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     return(Charges != null ? Charges.GetHashCode() : 0);
 }