2022-12-13 09:08:23 -05:00
|
|
|
import { NSFull } from "../NetscriptFunctions";
|
2022-07-20 01:13:06 -04:00
|
|
|
|
2019-05-04 21:03:40 -07:00
|
|
|
/**
|
|
|
|
* The environment in which a script runs. The environment holds
|
|
|
|
* Netscript functions and arguments for that script.
|
|
|
|
*/
|
|
|
|
export class Environment {
|
2023-04-27 15:21:06 -07:00
|
|
|
/** Whether or not the script that uses this Environment is stopped */
|
2021-09-04 19:09:30 -04:00
|
|
|
stopFlag = false;
|
2019-05-04 21:03:40 -07:00
|
|
|
|
2022-10-04 06:40:10 -04:00
|
|
|
/** The currently running function */
|
2022-08-06 17:53:09 -04:00
|
|
|
runningFn = "";
|
|
|
|
|
2022-10-04 06:40:10 -04:00
|
|
|
/** Environment variables (currently only Netscript functions) */
|
2023-01-05 17:41:24 -08:00
|
|
|
vars: NSFull | null = null;
|
2019-05-04 21:03:40 -07:00
|
|
|
}
|