DOCS: Add printRaw and tprintRaw docs (#663)

This commit is contained in:
Snarling
2023-07-07 18:23:26 -04:00
committed by GitHub
parent 3981f72149
commit 006fbd528f
10 changed files with 128 additions and 22 deletions
+6
View File
@@ -1767,6 +1767,12 @@ export const ns: InternalAPI<NSFull> = {
const name = helpers.string(ctx, "name", _name);
return getRamCost(...name.split("."));
},
tprintRaw: () => (value) => {
Terminal.printRaw(wrapUserNode(value));
},
printRaw: (ctx) => (value) => {
ctx.workerScript.print(wrapUserNode(value));
},
flags: Flags,
...NetscriptExtra(),
};