741 {
744 string cfg_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" "+
"Construction" +
" " + main_part_name +
" " + part_name +
" " +
"Materials";
745
746 if (
GetGame().ConfigIsExisting( cfg_path ) )
747 {
749
750 for ( int i = 0; i < child_count; i++ )
751 {
752 string child_name;
754
755
756 string config_path;
757 string type;
758 string slot_name;
759 config_path = cfg_path + " " + child_name + " " + "type";
761 config_path = cfg_path + " " + child_name + " " + "slot_name";
763 config_path = cfg_path + " " + child_name + " " + "quantity";
765 config_path = cfg_path + " " + child_name + " " + "lockable";
767
768
770
771
772 if ( lockable )
773 {
774 if ( attachment )
775 {
777 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
779
780 GetParent().GetInventory().SetSlotLock( inventory_location.
GetSlot() ,
false );
782 }
783 }
784 }
785 }
786 }
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
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 void ObjectDelete(Object obj)
proto native int GetSlot()
returns slot id if current type is Attachment
static bool IsBaseBuildingLogEnable()
proto native CGame GetGame()