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

◆ CheckExclusionAccessCondition()

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

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

4546 {
4547 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4548 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND;
4549
4550 if (occupiedException)
4551 {
4552 adjustedValue = value;
4553 return false;
4554 }
4555
4556 if (targetException)
4557 {
4558 adjustedValue = null;
4559 return false;
4560 }
4561
4562 AdjustExclusionAccessCondition(occupiedSlot,targetSlot,value,adjustedValue);
4563 return adjustedValue.Count() != 0;
4564 }
void AdjustExclusionAccessCondition(int occupiedSlot, int testedSlot, set< int > value, inout set< int > adjustedValue)
if we want to filter
Определения EntityAI.c:4567

Перекрестные ссылки AdjustExclusionAccessCondition().

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