mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
* Remove the limitation unique args per script * Internal changes to how runningScripts are stored on the server, to make common usage faster.
13 lines
479 B
TypeScript
13 lines
479 B
TypeScript
import { Terminal } from "../../Terminal";
|
|
import { BaseServer } from "../../Server/BaseServer";
|
|
import { killWorkerScriptByPid } from "../../Netscript/killWorkerScript";
|
|
|
|
export function killall(_args: (string | number | boolean)[], server: BaseServer): void {
|
|
Terminal.print("Killing all running scripts");
|
|
for (const byPid of server.runningScriptMap.values()) {
|
|
for (const runningScript of byPid.values()) {
|
|
killWorkerScriptByPid(runningScript.pid);
|
|
}
|
|
}
|
|
}
|