960 {
962 string part_cfg_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" "+
"Construction" +
" " + construction_part.
GetMainPartName() +
" " + construction_part.
GetPartName() +
" " +
"build_action_type";
963 if (
g_Game.ConfigIsExisting( part_cfg_path ) )
964 {
965 int part_build_action_type =
g_Game.ConfigGetInt( part_cfg_path );
966 string tool_cfg_path = "cfgVehicles" + " " + tool.GetType() + " " + "build_action_type";
967
968 if (
g_Game.ConfigIsExisting( tool_cfg_path ) )
969 {
970 int tool_build_action_type =
g_Game.ConfigGetInt( tool_cfg_path );
971
972 if ( ( part_build_action_type & tool_build_action_type ) > 0 )
973 {
974 return true;
975 }
976 }
977 }
978
979 return false;
980 }
ConstructionPart GetConstructionPart(string part_name)