Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ItemType.GetHashCode() * 397) ^ Id.GetHashCode());
     }
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (ExpireMs != 0L)
            {
                hash ^= ExpireMs.GetHashCode();
            }
            if (AppliedMs != 0L)
            {
                hash ^= AppliedMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (ReourceId != 0)
            {
                hash ^= ReourceId.GetHashCode();
            }
            if (Reource != 0)
            {
                hash ^= Reource.GetHashCode();
            }
            if (EffectValue != 0)
            {
                hash ^= EffectValue.GetHashCode();
            }
            if (appearInfo_ != null)
            {
                hash ^= AppearInfo.GetHashCode();
            }
            if (Speed != 0)
            {
                hash ^= Speed.GetHashCode();
            }
            return(hash);
        }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (ItemDesc.Length != 0)
            {
                hash ^= ItemDesc.GetHashCode();
            }
            if (ItemVoice.Length != 0)
            {
                hash ^= ItemVoice.GetHashCode();
            }
            if (ItemPhiz.Length != 0)
            {
                hash ^= ItemPhiz.GetHashCode();
            }
            if (Player != 0)
            {
                hash ^= Player.GetHashCode();
            }
            return(hash);
        }
Example #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((base.GetHashCode() * 397) ^ (ItemType != null ? ItemType.GetHashCode() : 0));
     }
 }
Example #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (ReourceId != 0)
            {
                hash ^= ReourceId.GetHashCode();
            }
            if (Reource != 0)
            {
                hash ^= Reource.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (Group != 0)
            {
                hash ^= Group.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int c1 = Sysname == null ? 0 : Sysname.GetHashCode();
            int c2 = DisplayName == null ? 0 : DisplayName.GetHashCode();
            int c3 = DevType.GetHashCode();

            return(((17 + c1) * 23 + c2) * 23 + c3);
        }
Example #8
0
        public override int GetHashCode()
        {
            var hashCode = -747960638;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + type.GetHashCode();
            hashCode = hashCode * -1521134295 + Type.GetHashCode();
            return(hashCode);
        }
Example #9
0
        public override int GetHashCode()
        {
            var hashCode = 371274160;

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

            return(hashCode);
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Parameters != null)
         {
             hashCode = hashCode * 59 + Parameters.GetHashCode();
         }
         if (ParameterGroups != null)
         {
             hashCode = hashCode * 59 + ParameterGroups.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (Category != null)
         {
             hashCode = hashCode * 59 + Category.GetHashCode();
         }
         if (ItemType != null)
         {
             hashCode = hashCode * 59 + ItemType.GetHashCode();
         }
         if (Kind != null)
         {
             hashCode = hashCode * 59 + Kind.GetHashCode();
         }
         if (StateDescription != null)
         {
             hashCode = hashCode * 59 + StateDescription.GetHashCode();
         }
         if (Tags != null)
         {
             hashCode = hashCode * 59 + Tags.GetHashCode();
         }
         if (UID != null)
         {
             hashCode = hashCode * 59 + UID.GetHashCode();
         }
         if (Advanced != null)
         {
             hashCode = hashCode * 59 + Advanced.GetHashCode();
         }
         if (CommandDescription != null)
         {
             hashCode = hashCode * 59 + CommandDescription.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 13;
         hashCode = (hashCode * 397) ^ ItemType.GetHashCode();
         hashCode = (hashCode * 397) ^ Count.GetHashCode();
         return(hashCode);
     }
 }
Example #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Name.GetHashCode();
         result = (result * 397) ^ ItemType.GetHashCode();
         result = (result * 397) ^ EvaluationValue;
         return(result);
     }
 }
Example #13
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            int result = 31;

            result = 17 * result + ItemType.GetHashCode();
            result = 17 * result + WorkspaceArtefact.GetHashCode();
            result = 17 * result + Line.GetHashCode();
            result = 17 * result + Column.GetHashCode();
            result = 17 * result + Description.GetHashCode();
            return(result);
        }
Example #14
0
        public override int GetHashCode()
        {
            int hash = Hashing.CombinedHash(ItemType.GetHashCode(), Size);

            hash = Hashing.CombineHash(hash, Dimensions.Length);
            for (int i = 0; i < Dimensions.Length; i++)
            {
                hash = Hashing.CombineHash(hash, Dimensions[i].GetHashCode());
            }
            return(hash);
        }
Example #15
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ItemBase?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ItemType?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ ItemLevel;
         hashCode = (hashCode * 397) ^ Category.GetHashCode();
         return(hashCode);
     }
 }
Example #16
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = (Key != null) ? Key.GetHashCode() : 0;
         // Suitable nullity checks etc, of course :)
         hash = (Id != null) ? hash * 17 + Id.GetHashCode() : hash;
         hash = (Name != null) ? hash * 17 + Name.GetHashCode() : hash;
         hash = hash * 17 + ItemType.GetHashCode();
         hash = hash * 17 + IsForCompensation.GetHashCode();
         hash = hash * 17 + StartQuantity.GetHashCode();
         hash = hash * 17 + CompletionQuantity.GetHashCode();
         return(hash);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Uid != null)
         {
             hashCode = hashCode * 59 + Uid.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (ChannelTypeUID != null)
         {
             hashCode = hashCode * 59 + ChannelTypeUID.GetHashCode();
         }
         if (ItemType != null)
         {
             hashCode = hashCode * 59 + ItemType.GetHashCode();
         }
         if (Kind != null)
         {
             hashCode = hashCode * 59 + Kind.GetHashCode();
         }
         if (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (DefaultTags != null)
         {
             hashCode = hashCode * 59 + DefaultTags.GetHashCode();
         }
         if (Properties != null)
         {
             hashCode = hashCode * 59 + Properties.GetHashCode();
         }
         if (Configuration != null)
         {
             hashCode = hashCode * 59 + Configuration.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #18
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Amount != 0)
            {
                hash ^= Amount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemType.Length != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Quantity != 0)
            {
                hash ^= Quantity.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Parameters != null?Parameters.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (ParameterGroups != null ? ParameterGroups.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ItemType != null ? ItemType.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Kind != null ? Kind.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Uid != null ? Uid.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Advanced.GetHashCode();
                hashCode = (hashCode * 397) ^ (StateDescription != null ? StateDescription.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #21
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Uid != null?Uid.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ChannelTypeUid != null ? ChannelTypeUid.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ItemType != null ? ItemType.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Kind != null ? Kind.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (DefaultTags != null ? DefaultTags.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (StateDescription != null ? StateDescription.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Advanced.GetHashCode();
                hashCode = (hashCode * 397) ^ (ThingConfiguration != null ? ThingConfiguration.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Player != 0)
            {
                hash ^= Player.GetHashCode();
            }
            hash ^= MoneyClaim.GetHashCode();
            if (clothesGoal_ != null)
            {
                hash ^= ClothesGoal.GetHashCode();
            }
            if (UnlockDesc.Length != 0)
            {
                hash ^= UnlockDesc.GetHashCode();
            }
            if (MornImage.Length != 0)
            {
                hash ^= MornImage.GetHashCode();
            }
            if (NoonImage.Length != 0)
            {
                hash ^= NoonImage.GetHashCode();
            }
            if (AfternoonImage.Length != 0)
            {
                hash ^= AfternoonImage.GetHashCode();
            }
            return(hash);
        }
Example #23
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemType != 0)
            {
                hash ^= ItemType.GetHashCode();
            }
            if (Order != 0)
            {
                hash ^= Order.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            return(hash);
        }
Example #24
0
 public override int GetHashCode()
 {
     return(Description.GetHashCode() + Name.GetHashCode() + Type.GetHashCode() + sprite.GetHashCode());
 }
        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 #26
0
 public override int GetHashCode()
 {
     return(ItemType != null ? ItemType.GetHashCode() : 0);
 }
Example #27
0
 public override int GetHashCode() => ItemType.GetHashCode();
Example #28
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);
        }