mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
This commit is contained in:
committed by
GitHub
parent
a674633f6c
commit
6073964768
@@ -12,16 +12,19 @@ interface ProgramConstructorParams {
|
||||
name: CompletedProgramName;
|
||||
create: IProgramCreate | null;
|
||||
run: (args: string[], server: BaseServer) => void;
|
||||
nsMethod?: string;
|
||||
}
|
||||
|
||||
export class Program {
|
||||
name: ProgramFilePath & CompletedProgramName;
|
||||
create: IProgramCreate | null;
|
||||
run: (args: string[], server: BaseServer) => void;
|
||||
nsMethod?: string;
|
||||
|
||||
constructor({ name, create, run }: ProgramConstructorParams) {
|
||||
constructor({ name, create, run, nsMethod }: ProgramConstructorParams) {
|
||||
this.name = asProgramFilePath(name);
|
||||
this.create = create;
|
||||
this.run = run;
|
||||
this.nsMethod = nsMethod ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user