bitburner-src/markdown/bitburner.runningscript.md
Snarling 65cd14e33b
DOC: Add ns documentation for possible sleeve tasks (#217)
* Add specific types for sleeve tasks
* Moved LocationName enum to overall enums file
* Add LocationName enum to those provided to player
* remove trailing s on CompanyPosNames enum (now CompanyPosName, in line with LocationName)
* Also regenerated all ns documentation. This leads to an expected error when checking for generated files, because PRs should not normally touch markdown files. Also leads to a lint failure in generated file bitburner.d.ts
* also removed some exporting from NetscriptDefinitions.d.ts for anything that wasn't imported somewhere else.
2022-11-20 12:07:22 -05:00

2.0 KiB

Home > bitburner > RunningScript

RunningScript interface

Signature:

interface RunningScript 

Properties

Property 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