mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
2.1 KiB
2.1 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 | |
threads | number | Number of threads that this script runs with |