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

Function AddScriptToList

editor/ObjCScript.cpp:307–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305// LIST FUNCTIONS
306
307inline int AddScriptToList(char *name, uint16_t type, bool custom) {
308 int slot = FindFreeScriptSlot();
309 strcpy(Script_names[slot].name, name);
310 Script_names[slot].used = true;
311 Script_names[slot].type = type;
312 Script_names[slot].iscustom = custom;
313 Script_names[slot].free_parameters();
314 return slot;
315}
316
317// Resets all entries in script list to null.
318void ResetScriptList() {

Callers 2

GenerateScriptWizardInfoFunction · 0.85
AddScriptBlockToScriptFunction · 0.85

Calls 2

FindFreeScriptSlotFunction · 0.85
free_parametersMethod · 0.80

Tested by

no test coverage detected