ScriptDiscoveryService

Methods

getLocal() → {Array.<object>}
Returns:
Type: Array.<object>
getPublic() → {Array.<object>}
Returns:
Type: Array.<object>
getRunning() → {Array.<object>}
Returns:
Type: Array.<object>
loadOneScript(filename)
Parameters:
Name Type Description
filename string
loadScript(filenameopt, isUserLoadedopt, loadScriptFromEditoropt, activateMainWindowopt, reloadopt, quitWhenFinishedopt) → {boolean}
Parameters:
Name Type Attributes Default Description
filename string <optional>
""
isUserLoaded boolean <optional>
true
loadScriptFromEditor boolean <optional>
false
activateMainWindow boolean <optional>
false
reload boolean <optional>
false
quitWhenFinished boolean <optional>
false
Returns:
Type: boolean
onClearDebugWindow()
onErrorLoadingScript(url)
Parameters:
Name Type Description
url string
onErrorMessage(message, scriptName)
Parameters:
Name Type Description
message string
scriptName string
onInfoMessage(message, scriptName)
Parameters:
Name Type Description
message string
scriptName string
onPrintedMessage(message, scriptName)
Parameters:
Name Type Description
message string
scriptName string
onScriptFinished(filename, engine)
Parameters:
Name Type Description
filename string
engine object
onWarningMessage(message, scriptName)
Parameters:
Name Type Description
message string
scriptName string
reloadAllScripts()
stopAllScripts(restartopt)
Parameters:
Name Type Attributes Default Description
restart boolean <optional>
false
stopScript(scriptHash, restartopt) → {boolean}
Parameters:
Name Type Attributes Default Description
scriptHash string
restart boolean <optional>
false
Returns:
Type: boolean

Signals

clearDebugWindow() → {Signal}
Returns:
Type: Signal
errorLoadingScript(url) → {Signal}
Parameters:
Name Type Description
url string
Returns:
Type: Signal
errorMessage(message, engineName) → {Signal}
Parameters:
Name Type Description
message string
engineName string
Returns:
Type: Signal
infoMessage(message, engineName) → {Signal}
Parameters:
Name Type Description
message string
engineName string
Returns:
Type: Signal
printedMessage(message, engineName) → {Signal}
Parameters:
Name Type Description
message string
engineName string
Returns:
Type: Signal
scriptCountChanged() → {Signal}
Returns:
Type: Signal
scriptLoadError(filename, error) → {Signal}
Parameters:
Name Type Description
filename string
error string
Returns:
Type: Signal
scriptsReloading() → {Signal}
Returns:
Type: Signal
warningMessage(message, engineName) → {Signal}
Parameters:
Name Type Description
message string
engineName string
Returns:
Type: Signal