mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 20:37:05 +02:00
convert company work to new work system
This commit is contained in:
@@ -4,10 +4,12 @@ import { IReviverValue } from "../utils/JSONReviver";
|
||||
export abstract class Work {
|
||||
type: WorkType;
|
||||
singularity: boolean;
|
||||
cyclesWorked: number;
|
||||
|
||||
constructor(type: WorkType, singularity: boolean) {
|
||||
this.type = type;
|
||||
this.singularity = singularity;
|
||||
this.cyclesWorked = 0;
|
||||
}
|
||||
|
||||
abstract process(player: IPlayer, cycles: number): boolean;
|
||||
@@ -21,4 +23,5 @@ export enum WorkType {
|
||||
CREATE_PROGRAM = "CREATE_PROGRAM",
|
||||
GRAFTING = "GRAFTING",
|
||||
FACTION = "FACTION",
|
||||
COMPANY = "COMPANY",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user