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

◆ CheckExclusionAccessPropagation()

bool Entity::CheckExclusionAccessPropagation ( int occupiedSlot,
int targetSlot,
set< int > value,
inout set< int > adjustedValue )
inlineprotected

special propagation contition

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

4574 {
4575 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4576 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND || targetSlot == InventorySlots.INVALID;
4577
4578 if (targetException)
4579 {
4580 adjustedValue = null;
4581 return false;
4582 }
4583
4584 AdjustExclusionAccessPropagation(occupiedSlot,targetSlot,value,adjustedValue);
4585 return adjustedValue.Count() != 0;
4586 }
void AdjustExclusionAccessPropagation(int occupiedSlot, int testedSlot, set< int > value, inout set< int > adjustedValue)
if we want to filter propagation specifically; DO NOT override unless you know what you are doing.
Определения EntityAI.c:4589

Перекрестные ссылки AdjustExclusionAccessPropagation() и InventorySlots::INVALID.

Используется в ClearExclusionValueRecursive() и PropagateExclusionValueRecursive().