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

◆ PropagateExclusionValueRecursive()

void Entity::PropagateExclusionValueRecursive ( set< int > values,
int slotId )
inlineprivate

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

4472 {
4473 if (values && values.Count() != 0)
4474 {
4475 set<int> passThis;
4476 InventoryLocation lcn = new InventoryLocation();
4478 if (CheckExclusionAccessPropagation(lcn.GetSlot(), slotId, values, passThis))
4479 {
4480 m_AttachmentExclusionMaskChildren.InsertSet(passThis);
4481 EntityAI parent = GetHierarchyParent();
4482 if (parent)
4483 parent.PropagateExclusionValueRecursive(passThis,lcn.GetSlot());
4484 }
4485 }
4486 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
bool CheckExclusionAccessPropagation(int occupiedSlot, int targetSlot, set< int > value, inout set< int > adjustedValue)
special propagation contition
ref set< int > m_AttachmentExclusionMaskChildren
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetSlot()
returns slot id if current type is Attachment

Перекрестные ссылки CheckExclusionAccessPropagation(), EntityAI(), GetHierarchyParent(), GetInventory(), InventoryLocation::GetSlot() и m_AttachmentExclusionMaskChildren.

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