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

◆ GetConstructionPartById()

ConstructionPart ItemBase::GetConstructionPartById ( int id)
inlineprotected

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

324 {
325 Construction construction = GetConstruction();
326 map<string, ref ConstructionPart> construction_parts = construction.GetConstructionParts();
327
328 for ( int i = 0; i < construction_parts.Count(); ++i )
329 {
330 string key = construction_parts.GetKey( i );
331 ConstructionPart value = construction_parts.Get( key );
332
333 if ( value.GetId() == id )
334 {
335 return value;
336 }
337 }
338
339 return NULL;
340 }
void ConstructionPart(string name, string part_name, string main_part_name, int id, bool is_built, bool is_base, bool is_gate, array< string > required_parts)
Определения ConstructionPart.c:531
map
Определения ControlsXboxNew.c:4
int GetId()
Определения ConstructionPart.c:208
Construction GetConstruction()
Определения BaseBuildingBase.c:883

Перекрестные ссылки GetConstruction() и ConstructionPart::GetId().