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

◆ HasConflictPart()

bool HasConflictPart ( string part_name)
protected

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

439 {
440 string main_part_name = GetConstructionPart( part_name ).GetMainPartName();
441 string cfg_path = "cfgVehicles" + " " + GetParent().GetType() + " "+ "Construction" + " " + main_part_name + " " + part_name + " " + "conflicted_parts";
442 ref array<string> conflict_parts = new array<string>;
443 GetGame().ConfigGetTextArray( cfg_path, conflict_parts );
444
445 //check if parts are already built
446 for ( int i = 0; i < conflict_parts.Count(); i++ )
447 {
448 if ( IsPartConstructed( conflict_parts.Get( i ) ) )
449 {
450 return true;
451 }
452 }
453
454 return false;
455 }
ConstructionPart GetConstructionPart(string part_name)
Определения Construction.c:280
bool IsPartConstructed(string part_name)
Определения Construction.c:602
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
string GetMainPartName()
Определения ConstructionPart.c:35
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
BaseBuildingBase GetParent()
Get parent of the Effect.
Определения Construction.c:40

Перекрестные ссылки CGame::ConfigGetTextArray(), GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), GetParent() и IsPartConstructed().

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