236 {
238
239 string construction_path =
"cfgVehicles" +
" " +
GetParent().GetType() +
" " +
"Construction";
240
241 if (
g_Game.ConfigIsExisting( construction_path ) )
242 {
243
244 for (
int i = 0; i <
g_Game.ConfigGetChildrenCount( construction_path ); ++i )
245 {
246 string main_part_name;
247 g_Game.ConfigGetChildName( construction_path, i, main_part_name );
248 string part_path = construction_path + " " + main_part_name;
249
250
251 for (
int j = 0; j <
g_Game.ConfigGetChildrenCount( part_path ); ++j )
252 {
253 string part_name;
254 g_Game.ConfigGetChildName( part_path, j, part_name );
255
257 g_Game.ConfigGetTextRaw( part_path +
" " + part_name +
" " +
"name",
name );
259 bool show_on_init =
g_Game.ConfigGetInt( part_path +
" " + part_name +
" " +
"show_on_init" );
260 int id =
g_Game.ConfigGetInt( part_path +
" " + part_name +
" " +
"id" );
261 bool is_base =
g_Game.ConfigGetInt( part_path +
" " + part_name +
" " +
"is_base" );
262 bool is_gate =
g_Game.ConfigGetInt( part_path +
" " + part_name +
" " +
"is_gate" );
263
265
267 }
268 }
269 }
270 }
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
array< string > GetRequiredParts(string part_name, string main_part_name)
ref map< string, ref ConstructionPart > m_ConstructionParts
static bool IsBaseBuildingLogEnable()