912 {
914 string cfg_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" "+
"Construction" +
" " + main_part_name +
" " + part_name +
" " +
"Materials";
915
916 if (
GetGame().ConfigIsExisting( cfg_path ) )
917 {
919
920 for ( int i = 0; i < child_count; i++ )
921 {
922 string child_name;
924
925
926 string config_path;
927 string type;
928 string slot_name;
929 config_path = cfg_path + " " + child_name + " " + "type";
931 config_path = cfg_path + " " + child_name + " " + "slot_name";
933 config_path = cfg_path + " " + child_name + " " + "quantity";
935 config_path = cfg_path + " " + child_name + " " + "lockable";
937
938
940
941
942 if ( lockable )
943 {
944 if ( attachment )
945 {
947 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
949 GetParent().GetInventory().SetSlotLock( inventory_location.
GetSlot(), lock_slot );
950 }
951 }
952 }
953 }
954 }
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 int GetSlot()
returns slot id if current type is Attachment
static bool IsBaseBuildingLogEnable()
proto native CGame GetGame()