DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ TakeOrSplitToInventoryLocation()

static void SplitItemUtils::TakeOrSplitToInventoryLocation ( notnull PlayerBase player,
notnull InventoryLocation dst )
inlinestaticprivate

См. определение в файле SplitItemUtils.c строка 34

35 {
36 ItemBase item_base = ItemBase.Cast( dst.GetItem() );
37 int slot = dst.GetSlot();
38
39 if( !dst.GetItem().GetInventory().CanRemoveEntity() || !player.CanManipulateInventory() )
40 return;
41
42 float stack_max = item_base.GetTargetQuantityMax(slot);
43
44 if( stack_max >= item_base.GetQuantity() )
45 {
46 InventoryLocation src = new InventoryLocation;
47 if (dst.GetItem().GetInventory().GetCurrentInventoryLocation(src))
48 {
49 player.PredictiveTakeToDst(src, dst);
50 }
51 else
52 Error("TakeIntoCargoEx cannot get src for dst=" + dst.DumpToString());
53 }
54 else
55 {
56 item_base.SplitIntoStackMaxToInventoryLocationClient( dst );
57 }
58 }
class GP5GasMask extends MaskBase ItemBase
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error().

Используется в Icon::DoubleClick(), VicinitySlotsContainer::DoubleClick(), AttachmentCategoriesRow::DropReceived(), ClosableContainer::DropReceived(), ClosableContainer::DropReceived(), HandsContainer::DropReceived(), Icon::DropReceivedFromMain(), OnCenterPanelDropReceived() и VicinitySlotsContainer::TransferItem().