Add ns.getFunctionRamCost (#526)

This commit is contained in:
G4mingJon4s
2023-05-26 13:46:08 +02:00
committed by GitHub
parent 294603fff8
commit 113af6e711
5 changed files with 48 additions and 6 deletions

View File

@@ -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