bitburner-src/src/Netscript/Environment.ts

18 lines
473 B
TypeScript
Raw Normal View History

2022-07-20 07:13:06 +02:00
import { NS } from "../ScriptEditor/NetscriptDefinitions";
/**
* 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 should stop running */
2021-09-05 01:09:30 +02:00
stopFlag = false;
/** The currently running function */
runningFn = "";
/** Environment variables (currently only Netscript functions) */
2022-07-20 07:13:06 +02:00
vars: NS | null = null;
}