bitburner-src/src/Netscript/Environment.ts

19 lines
523 B
TypeScript
Raw Normal View History

2022-12-13 15:08:23 +01:00
import { NSFull } from "../NetscriptFunctions";
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) */
2022-12-13 15:08:23 +01:00
vars: ExternalAPI<NSFull> | null = null;
}