bitburner-src/src/Terminal/commands/analyze.ts
Martin Fournier f9ed45a895 Pass server to terminal actions that end later
Adds the current server object to the finishAction handler so that if
the player changes during the progress he'll hit the original server
with the command.
2022-01-08 11:29:00 -05:00

19 lines
504 B
TypeScript

import { ITerminal } from "../ITerminal";
import { IRouter } from "../../ui/Router";
import { IPlayer } from "../../PersonObjects/IPlayer";
import { BaseServer } from "../../Server/BaseServer";
export function analyze(
terminal: ITerminal,
router: IRouter,
player: IPlayer,
server: BaseServer,
args: (string | number | boolean)[],
): void {
if (args.length !== 0) {
terminal.error("Incorrect usage of analyze command. Usage: analyze");
return;
}
terminal.startAnalyze(player);
}