Better RamCost testing (see desc)

* RamCostGenerator will have an error if ramcosts are defined for nonexistent functions, in addition to error if not all functions have ram costs defined
* Removed a few random blank comment lines in NetscriptDefinitions.d.ts
* RamCalculation.test.ts checks exact expected static and dynamic ram usage from (almost) every function, based on defined RamCosts in RamCostGenerator.
This commit is contained in:
Snarling
2022-10-05 10:42:07 -04:00
parent e71e5988cb
commit 8bb88a5080
3 changed files with 95 additions and 93 deletions

View File

@@ -4408,54 +4408,55 @@ export interface NS {
* @remarks RAM cost: 4 GB
*/
readonly hacknet: Hacknet;
/**
*
* Namespace for bladeburner functions.
* @remarks RAM cost: 0 GB
*/
readonly bladeburner: Bladeburner;
/**
*
* Namespace for codingcontract functions.
* @remarks RAM cost: 0 GB
*/
readonly codingcontract: CodingContract;
/**
*
* Namespace for gang functions.
* @remarks RAM cost: 0 GB
*/
readonly gang: Gang;
/**
*
* Namespace for sleeve functions.
* @remarks RAM cost: 0 GB
*/
readonly sleeve: Sleeve;
/**
*
* Namespace for stock functions.
* @remarks
* RAM cost: 0 GB
* @remarks RAM cost: 0 GB
*/
readonly stock: TIX;
/**
*
* Namespace for formulas functions.
* @remarks
* RAM cost: 0 GB
* @remarks RAM cost: 0 GB
*/
readonly formulas: Formulas;
/**
* Namespace for stanek functions.
* RAM cost: 0 GB
*/
readonly stanek: Stanek;
/**
* Namespace for infiltration functions.
* RAM cost: 0 GB
*/
readonly infiltration: Infiltration;
/**
* Namespace for corporation functions.
* RAM cost: 1022.4 GB
@@ -4476,8 +4477,7 @@ export interface NS {
/**
* Namespace for grafting functions.
* @remarks
* RAM cost: 0 GB
* @remarks RAM cost: 0 GB
*/
readonly grafting: Grafting;