mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
2.7 KiB
2.7 KiB
Home > bitburner > RunningScript
RunningScript interface
Signature:
interface RunningScript
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
args | (string | number | boolean)[] | Arguments the script was called with | |
filename | string | Filename of the script | |
logs | string[] | Script logs as an array. The newest log entries are at the bottom. Timestamps, if enabled, are placed inside [brackets] at the start of each line. |
|
offlineExpGained | number | Total amount of hacking experience earned from this script when offline | |
offlineMoneyMade | number | Total amount of money made by this script when offline | |
offlineRunningTime | number | Number of seconds that the script has been running offline | |
onlineExpGained | number | Total amount of hacking experience earned from this script when online | |
onlineMoneyMade | number | Total amount of money made by this script when online | |
onlineRunningTime | number | Number of seconds that this script has been running online | |
pid | number | Process ID. Must be an integer | |
ramUsage | number | How much RAM this script uses for ONE thread | |
server | string | Hostname of the server on which this script runs | |
tailProperties | TailProperties | null | Properties of the tail window, or null if it is not shown | |
temporary | boolean | Whether this RunningScript is excluded from saves | |
threads | number | Number of threads that this script runs with | |
title | string | ReactElement | The title, as shown in the script's log box. Defaults to the name + args, but can be changed by the user. If it is set to a React element (only by the user), that will not be persisted, and will be restored to default on load. |