示例#1
0
 public override int GetHashCode()
 {
     return(WeaponClass.GetHashCode()
            ^ Attack.GetHashCode()
            ^ Range.GetHashCode()
            ^ CanDoubleRange.GetHashCode()
            ^ Ammunition.GetHashCode());
 }
示例#2
0
    public override int GetHashCode()
    {
        int hashCode = -305631161;

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

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

        hashCode = hashCode * -1521134295 + Rarity.GetHashCode();
        hashCode = hashCode * -1521134295 + weaponClass.GetHashCode();
        return(hashCode);
    }