DayZ 1.28
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/Entities/EntityAI.c строка 4578

4579 {
4580 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4581 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND || targetSlot == InventorySlots.INVALID;
4582
4583 if (targetException)
4584 {
4585 adjustedValue = null;
4586 return false;
4587 }
4588
4589 AdjustExclusionAccessPropagation(occupiedSlot,targetSlot,value,adjustedValue);
4590 return adjustedValue.Count() != 0;
4591 }
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.
Определения 3_Game/Entities/EntityAI.c:4594

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

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