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

◆ GetMaterialType()

ConstructionMaterialType GetMaterialType ( string part_name)
protected

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

1006 {
1007 ConstructionPart construction_part = GetConstructionPart( part_name );
1008 string part_cfg_path = "cfgVehicles" + " " + GetParent().GetType() + " "+ "Construction" + " " + construction_part.GetMainPartName() + " " + construction_part.GetPartName() + " " + "material_type";
1009 if ( GetGame().ConfigIsExisting( part_cfg_path ) )
1010 {
1011 return GetGame().ConfigGetInt( part_cfg_path );
1012 }
1013
1014 return ConstructionMaterialType.MATERIAL_NONE;
1015 }
ConstructionPart GetConstructionPart(string part_name)
Определения Construction.c:280
ConstructionMaterialType
Определения Construction.c:2
proto native int ConfigGetInt(string path)
Get int value from config on path.
string GetPartName()
Определения ConstructionPart.c:30
string GetMainPartName()
Определения ConstructionPart.c:35
proto native CGame GetGame()
BaseBuildingBase GetParent()
Get parent of the Effect.
Определения Construction.c:40

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