307 {
309 string cfg_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" "+
"Construction" +
" " + main_part_name +
" " + part_name +
" " +
"Materials";
310
311 if (
GetGame().ConfigIsExisting( cfg_path ) )
312 {
314
315 for ( int i = 0; i < child_count; i++ )
316 {
317 string child_name;
319
320
321 string config_path;
322 string slot_name;
323 config_path = cfg_path + " " + child_name + " " + "slot_name";
325 config_path = cfg_path + " " + child_name + " " + "quantity";
327 config_path = cfg_path + " " + child_name + " " + "lockable";
329
331 if (attachment.IsRuined())
332 return true;
333 }
334 }
335 return false;
336 }
ConstructionPart GetConstructionPart(string part_name)
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
proto native CGame GetGame()