mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
Add ns.getFunctionRamCost (#526)
This commit is contained in:
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -6510,6 +6510,16 @@ export interface NS {
|
||||
* */
|
||||
getResetInfo(): ResetInfo;
|
||||
|
||||
/**
|
||||
* Get the ram cost of a netscript function.
|
||||
*
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* @param name - The fully-qualified function name, without the leading `ns`. Example inputs: `hack`, `tprint`, `stock.getPosition`.
|
||||
*/
|
||||
getFunctionRamCost(name: string): number;
|
||||
|
||||
/**
|
||||
* Parse command line flags.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user