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

◆ HasDependentPart()

bool HasDependentPart ( string part_name)
protected

См. определение в файле Construction.c строка 479

480 {
481 for ( int i = 0; i < m_ConstructionParts.Count(); ++i )
482 {
483 string key = m_ConstructionParts.GetKey( i );
484 ConstructionPart construction_part = m_ConstructionParts.Get( key );
485
486 if ( construction_part.IsBuilt() )
487 {
488 if ( construction_part.GetRequiredParts().Find( part_name ) > -1 )
489 {
490 return true;
491 }
492 }
493 }
494
495 return false;
496 }
ref map< string, ref ConstructionPart > m_ConstructionParts
Определения Construction.c:15
bool IsBuilt()
Определения ConstructionPart.c:45
array< string > GetRequiredParts()
Определения ConstructionPart.c:75

Перекрестные ссылки ConstructionPart::GetRequiredParts(), ConstructionPart::IsBuilt() и m_ConstructionParts.

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