bitburner-src/src/Netscript/Environment.ts
David Walker aa7facd4ba
NETSCRIPT: Greatly speed up script launching, and remove the limitation unique args per script (#440)
* Remove the limitation unique args per script
* Internal changes to how runningScripts are stored on the server, to make common usage faster.
2023-04-27 18:21:06 -04:00

17 lines
456 B
TypeScript

import { NSFull } from "../NetscriptFunctions";
/**
* The environment in which a script runs. The environment holds
* Netscript functions and arguments for that script.
*/
export class Environment {
/** Whether or not the script that uses this Environment is stopped */
stopFlag = false;
/** The currently running function */
runningFn = "";
/** Environment variables (currently only Netscript functions) */
vars: NSFull | null = null;
}