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

◆ PropagateExclusionValueRecursive()

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

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

4417 {
4418 if (values && values.Count() != 0)
4419 {
4420 set<int> passThis;
4421 InventoryLocation lcn = new InventoryLocation();
4423 if (CheckExclusionAccessPropagation(lcn.GetSlot(), slotId, values, passThis))
4424 {
4425 m_AttachmentExclusionMaskChildren.InsertSet(passThis);
4426 EntityAI parent = GetHierarchyParent();
4427 if (parent)
4428 parent.PropagateExclusionValueRecursive(passThis,lcn.GetSlot());
4429 }
4430 }
4431 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения 3_Game/Entities/EntityAI.c:202
bool CheckExclusionAccessPropagation(int occupiedSlot, int targetSlot, set< int > value, inout set< int > adjustedValue)
special propagation contition
Определения 3_Game/Entities/EntityAI.c:4578
ref set< int > m_AttachmentExclusionMaskChildren
Определения 3_Game/Entities/EntityAI.c:109
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().