MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GenerateScriptWizardInfo

Function GenerateScriptWizardInfo

editor/ObjCScript.cpp:329–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327// returns true
328
329bool GenerateScriptWizardInfo(tD3XProgram *prog, bool custom) {
330#if 0 // LGT: Legacy scripting system?
331 int i;
332
333 if (!prog) {
334 Int3();
335 return false;
336 }
337
338 for (i = 0; i < prog->nscripts; i++)
339 {
340 int slot;
341 slot = AddScriptToList(prog->map[i].name, prog->map[i].type, custom);
342 Script_names[slot].line = 0;
343 }
344
345 return true;
346#else
347 return false;
348#endif
349}
350
351// This function actually tries to go throught the script source to find script names.
352// to find a script name we use the following algorithmn

Callers 3

OnEditScriptMethod · 0.85
LoadCurrentModuleMethod · 0.85

Calls 2

AddScriptToListFunction · 0.85
GenerateScriptParamInfoFunction · 0.85

Tested by

no test coverage detected