DayZ 1.30
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 строка 4892

4893 {
4894 bool failed = false;
4895
4896 if (dst1.GetType() == InventoryLocationType.ATTACHMENT)
4897 {
4898 failed |= !dst1.GetParent().CheckAttachmentReceiveExclusion(dst1.GetItem(),dst1.GetSlot());
4899 }
4900
4901 if (dst2.GetType() == InventoryLocationType.ATTACHMENT)
4902 {
4903 failed |= !dst2.GetParent().CheckAttachmentReceiveExclusion(dst2.GetItem(),dst2.GetSlot());
4904 }
4905 return !failed;
4906 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4

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