public CheckBalanceCauses([NotNull] IDataInventoryContainer inventoryContainer, int coinsSumRequired, Func <IDataInventoryContainer, int> sumCoinsFunc) { InventoryContainer = inventoryContainer ?? throw new ArgumentNullException(nameof(inventoryContainer)); CoinsSumRequired = coinsSumRequired; _getSumCoinsFunc = sumCoinsFunc; }
public static int GetSumPrice(IDataInventoryContainer dataInventoryContainer) { var databaseReadOnly = InventoryManager.ContainerDi.DatabaseReadOnly; var entities = databaseReadOnly.GetDataEntitiesInventory(dataInventoryContainer.DataInventory); var sum = entities.OfType <DataEntityPrice>().Sum(data => data.Price * data.Amount); return(sum); }
public ChangeAmountEntityInInventoryListener(IDataInventoryContainer targetInventory) { _targetInventory = targetInventory; }
public FilterDummyTwoHanded([NotNull] IDataInventoryContainer dummy) { _dummy = dummy; }
public FilterDummyStats([NotNull] IDataInventoryContainer dummy, [NotNull] HeroComponent heroComponent) { _dummy = dummy ?? throw new ArgumentNullException(nameof(dummy)); _heroComponent = heroComponent ?? throw new ArgumentNullException(nameof(heroComponent)); }
public FilterHotBar([NotNull] IDataInventoryContainer inventoryOpenCloseObject) { _inventoryObject = inventoryOpenCloseObject ?? throw new ArgumentNullException(nameof(inventoryOpenCloseObject)); }
public BuffDebuffListener(HeroComponent heroComponent, IDataInventoryContainer dummy) { _heroComponent = heroComponent; _dummy = dummy; }
public FilterDummyDamnedItem(IDataInventoryContainer dummyInventoryContainer) { _dummyInventoryContainer = dummyInventoryContainer; }
public FilterDummyStackDenied([NotNull] IDataInventoryContainer dummy) { _dummy = dummy ?? throw new ArgumentNullException(nameof(dummy)); }
public BagTableStruct(IDataInventoryContainer bag, IDataInventoryContainer table) { Bag = bag; Table = table; }
public HotBarListener(IDataInventoryContainer skillInventory, IDataInventoryContainer bagInventory) { _skillInventory = skillInventory; _bagInventory = bagInventory; }