Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = -595725116;

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

            hashCode = hashCode * -1521134295 + HitPoints.GetHashCode();
            hashCode = hashCode * -1521134295 + HitPointsMax.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DescriptionLong);

            hashCode = hashCode * -1521134295 + ResistenceMax.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string[]> .Default.GetHashCode(Origins);

            hashCode = hashCode * -1521134295 + ClassType.GetHashCode();
            hashCode = hashCode * -1521134295 + Column.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ClassName);

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

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

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

            hashCode = hashCode * -1521134295 + Playable.GetHashCode();
            hashCode = hashCode * -1521134295 + RechargeMax.GetHashCode();
            hashCode = hashCode * -1521134295 + DamageMax.GetHashCode();
            hashCode = hashCode * -1521134295 + RecoveryMax.GetHashCode();
            hashCode = hashCode * -1521134295 + RegenerationMax.GetHashCode();
            hashCode = hashCode * -1521134295 + RecoveryBase.GetHashCode();
            hashCode = hashCode * -1521134295 + RegenerationBase.GetHashCode();
            hashCode = hashCode * -1521134295 + ThreatBase.GetHashCode();
            hashCode = hashCode * -1521134295 + PerceptionBase.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DefName.Length != 0)
            {
                hash ^= DefName.GetHashCode();
            }
            if (StackCount != 0)
            {
                hash ^= StackCount.GetHashCode();
            }
            if (StuffDefName.Length != 0)
            {
                hash ^= StuffDefName.GetHashCode();
            }
            if (Quality != 0)
            {
                hash ^= Quality.GetHashCode();
            }
            if (HitPoints != 0)
            {
                hash ^= HitPoints.GetHashCode();
            }
            if (innerProtoThing_ != null)
            {
                hash ^= InnerProtoThing.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DefName.Length != 0)
            {
                hash ^= DefName.GetHashCode();
            }
            if (StackCount != 0)
            {
                hash ^= StackCount.GetHashCode();
            }
            if (StuffDefName.Length != 0)
            {
                hash ^= StuffDefName.GetHashCode();
            }
            if (Quality != global::Trading.Quality.Awful)
            {
                hash ^= Quality.GetHashCode();
            }
            if (HitPoints != 0)
            {
                hash ^= HitPoints.GetHashCode();
            }
            if (innerProtoThing_ != null)
            {
                hash ^= InnerProtoThing.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// hash kodo metodas
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^
            Role.GetHashCode() ^
            HitPoints.GetHashCode() ^
            Mana.GetHashCode() ^
            Damage.GetHashCode() ^
            Defence.GetHashCode() ^
            Strength.GetHashCode() ^
            Agility.GetHashCode() ^
            Intelligence.GetHashCode() ^
            Power.GetHashCode());
 }