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

◆ SwapCheckExclusionMaskLocal()

bool SwapCheckExclusionMaskLocal ( notnull InventoryLocation src1,
notnull InventoryLocation src2,
notnull InventoryLocation dst1,
notnull InventoryLocation dst2 )
protected

Local, checks only stuff that is in guaranteed sync.

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

2635 {
2636 bool failed = false;
2637
2638 if (dst1.GetType() == InventoryLocationType.ATTACHMENT)
2639 {
2640 failed |= !dst1.GetParent().CheckAttachmentReceiveExclusion(dst1.GetItem(),dst1.GetSlot());
2641 }
2642
2643 if (dst2.GetType() == InventoryLocationType.ATTACHMENT)
2644 {
2645 failed |= !dst2.GetParent().CheckAttachmentReceiveExclusion(dst2.GetItem(),dst2.GetSlot());
2646 }
2647 return !failed;
2648 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4

Используется в ValidateSwap().