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

4701 {
4702 bool occupiedException = occupiedSlot == InventorySlots.HANDS || occupiedSlot == InventorySlots.SHOULDER || occupiedSlot == InventorySlots.MELEE || occupiedSlot == InventorySlots.LEFTHAND;
4703 bool targetException = targetSlot == InventorySlots.HANDS || targetSlot == InventorySlots.SHOULDER || targetSlot == InventorySlots.MELEE || targetSlot == InventorySlots.LEFTHAND || targetSlot == InventorySlots.INVALID;
4704
4705 if (targetException)
4706 {
4707 adjustedValue = null;
4708 return false;
4709 }
4710
4711 AdjustExclusionAccessPropagation(occupiedSlot,targetSlot,value,adjustedValue);
4712 return adjustedValue.Count() != 0;
4713 }
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().