DayZ 1.27
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 строка 2624

2625 {
2626 bool failed = false;
2627
2628 if (dst1.GetType() == InventoryLocationType.ATTACHMENT)
2629 {
2630 failed |= !dst1.GetParent().CheckAttachmentReceiveExclusion(dst1.GetItem(),dst1.GetSlot());
2631 }
2632
2633 if (dst2.GetType() == InventoryLocationType.ATTACHMENT)
2634 {
2635 failed |= !dst2.GetParent().CheckAttachmentReceiveExclusion(dst2.GetItem(),dst2.GetSlot());
2636 }
2637 return !failed;
2638 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4

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