bitburner-src/src/Netscript/Environment.ts

19 lines
530 B
TypeScript
Raw Normal View History

2022-07-20 07:13:06 +02:00
import { NS } from "../ScriptEditor/NetscriptDefinitions";
import { ExternalAPI } from "./APIWrapper";
2022-07-20 07:13:06 +02:00
/**
* 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) */
vars: ExternalAPI<NS> | null = null;
}