mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-22 10:12:30 +01:00
* Remove the limitation unique args per script * Internal changes to how runningScripts are stored on the server, to make common usage faster.
17 lines
456 B
TypeScript
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;
|
|
}
|