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

◆ CheckExclusionAccessPropagation()

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

special propagation contition

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 4633

4634 {
4635 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4636 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND || targetSlot == InventorySlots.INVALID;
4637
4638 if (targetException)
4639 {
4640 adjustedValue = null;
4641 return false;
4642 }
4643
4644 AdjustExclusionAccessPropagation(occupiedSlot,targetSlot,value,adjustedValue);
4645 return adjustedValue.Count() != 0;
4646 }
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.

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

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