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

◆ PropagateExclusionValueRecursive()

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

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

4539 {
4540 if (values && values.Count() != 0)
4541 {
4542 set<int> passThis;
4543 InventoryLocation lcn = new InventoryLocation();
4545 if (CheckExclusionAccessPropagation(lcn.GetSlot(), slotId, values, passThis))
4546 {
4547 m_AttachmentExclusionMaskChildren.InsertSet(passThis);
4548 EntityAI parent = GetHierarchyParent();
4549 if (parent)
4550 parent.PropagateExclusionValueRecursive(passThis,lcn.GetSlot());
4551 }
4552 }
4553 }
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().