convert company work to new work system

This commit is contained in:
Olivier Gagnon
2022-07-12 22:43:03 -04:00
parent 2d73f546b0
commit 598e47766e
14 changed files with 233 additions and 140 deletions
+3
View File
@@ -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",
}