2015-07-09 17:05:42 -04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Media;
|
2015-06-24 14:57:16 -04:00
|
|
|
|
using Filtration.ObjectModel.BlockItemBaseTypes;
|
|
|
|
|
using Filtration.ObjectModel.Enums;
|
2015-07-09 17:05:42 -04:00
|
|
|
|
using Filtration.ObjectModel.LootExplosionStudio;
|
2015-06-04 13:15:54 -04:00
|
|
|
|
|
2015-06-24 14:57:16 -04:00
|
|
|
|
namespace Filtration.ObjectModel.BlockItemTypes
|
2015-06-04 13:15:54 -04:00
|
|
|
|
{
|
2015-06-24 14:57:16 -04:00
|
|
|
|
public class SocketsBlockItem : NumericFilterPredicateBlockItem
|
2015-06-04 13:15:54 -04:00
|
|
|
|
{
|
|
|
|
|
public SocketsBlockItem()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public SocketsBlockItem(FilterPredicateOperator predicateOperator, int predicateOperand)
|
|
|
|
|
: base(predicateOperator, predicateOperand)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string PrefixText
|
|
|
|
|
{
|
|
|
|
|
get { return "Sockets"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int MaximumAllowed
|
|
|
|
|
{
|
|
|
|
|
get { return 2; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string DisplayHeading
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return "Sockets";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string SummaryText
|
|
|
|
|
{
|
|
|
|
|
get { return "Sockets " + FilterPredicate; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Color SummaryBackgroundColor
|
|
|
|
|
{
|
|
|
|
|
get { return Colors.LightGray; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Color SummaryTextColor
|
|
|
|
|
{
|
|
|
|
|
get { return Colors.Black; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int SortOrder
|
|
|
|
|
{
|
|
|
|
|
get { return 5; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int Minimum
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int Maximum
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 6;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-07-09 17:05:42 -04:00
|
|
|
|
|
|
|
|
|
public override int GetLootItemProperty(LootItem lootItem)
|
|
|
|
|
{
|
|
|
|
|
return lootItem.SocketGroups.Sum(c => c.Sockets.Count());
|
|
|
|
|
}
|
2015-06-04 13:15:54 -04:00
|
|
|
|
}
|
|
|
|
|
}
|