more work on wrapping formulas

This commit is contained in:
Olivier Gagnon
2022-05-24 17:51:48 -04:00
parent 324f752d8a
commit 0da2e74d12
4 changed files with 53 additions and 7 deletions
+3 -1
View File
@@ -78,6 +78,7 @@ import { IPort } from "./NetscriptPort";
import {
NS as INS,
Singularity as ISingularity,
Formulas as IFormulas,
Player as INetscriptPlayer,
Gang as IGang,
Bladeburner as IBladeburner,
@@ -532,8 +533,9 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
};
const extra = NetscriptExtra(Player, workerScript, helper);
const formulas = NetscriptFormulas(Player, workerScript, helper);
const formulas = wrapAPI(helper, {}, workerScript, NetscriptFormulas(Player, helper), "formulas")
.formulas as unknown as IFormulas;
const gang = wrapAPI(helper, {}, workerScript, NetscriptGang(Player, workerScript), "gang").gang as unknown as IGang;
const sleeve = wrapAPI(helper, {}, workerScript, NetscriptSleeve(Player), "sleeve").sleeve as unknown as ISleeve;
const hacknet = wrapAPI(helper, {}, workerScript, NetscriptHacknet(Player, workerScript), "hacknet")