示例#1
0
        public override int GetHashCode()
        {
            int hashCode = -793958728;

            hashCode = hashCode * -1521134295 + LootSize.GetHashCode();
            hashCode = hashCode * -1521134295 + LootValue.GetHashCode();
            hashCode = hashCode * -1521134295 + Service.GetHashCode();
            hashCode = hashCode * -1521134295 + Price.GetHashCode();
            return(hashCode);
        }
示例#2
0
 protected bool CanCreateById(LootValue v, int meters)
 {
     return(meters >= v.range.x &&
            (meters < v.range.y || v.range.y == -1));
 }