mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-03 20:07:34 +01:00
Add script editor documentation for getServer
This commit is contained in:
parent
d035a4099f
commit
14c41d2aab
@ -3891,6 +3891,16 @@ interface NS extends TIX, Singularity {
|
||||
*/
|
||||
getHacknetMultipliers (): HacknetMultipliers;
|
||||
|
||||
/**
|
||||
* Returns a server object for the given server. Defaults to the running script's server if host is not specified.
|
||||
*
|
||||
* @ramCost 2 GB
|
||||
* @param {string} [host] Optional. Hostname or IP for the requested server object.
|
||||
* @returns {Server} The requested server object.
|
||||
*/
|
||||
getServer (host?: Host): Server;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the amount of money available on a server.
|
||||
* Running this function on the home computer will return the player’s money.
|
||||
|
Loading…
Reference in New Issue
Block a user