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

◆ CheckExclusionAccessCondition()

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

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

4606 {
4607 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4608 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND;
4609
4610 if (occupiedException)
4611 {
4612 adjustedValue = value;
4613 return false;
4614 }
4615
4616 if (targetException)
4617 {
4618 adjustedValue = null;
4619 return false;
4620 }
4621
4622 AdjustExclusionAccessCondition(occupiedSlot,targetSlot,value,adjustedValue);
4623 return adjustedValue.Count() != 0;
4624 }
void AdjustExclusionAccessCondition(int occupiedSlot, int testedSlot, set< int > value, inout set< int > adjustedValue)
if we want to filter

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

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