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

4673 {
4674 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4675 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND;
4676
4677 if (occupiedException)
4678 {
4679 adjustedValue = value;
4680 return false;
4681 }
4682
4683 if (targetException)
4684 {
4685 adjustedValue = null;
4686 return false;
4687 }
4688
4689 AdjustExclusionAccessCondition(occupiedSlot,targetSlot,value,adjustedValue);
4690 return adjustedValue.Count() != 0;
4691 }
void AdjustExclusionAccessCondition(int occupiedSlot, int testedSlot, set< int > value, inout set< int > adjustedValue)
if we want to filter

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

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