create program and grafting done

This commit is contained in:
Olivier Gagnon
2022-07-10 01:37:36 -04:00
parent 647392626e
commit 606f1bf6c4
25 changed files with 375 additions and 324 deletions
+1 -3
View File
@@ -126,8 +126,6 @@ interface ClassWorkParams {
export const isClassWork = (w: Work | null): w is ClassWork => w !== null && w.type === WorkType.CLASS;
export class ClassWork extends Work {
type = WorkType.CLASS;
classType: ClassType;
location: LocationName;
cyclesWorked: number;
@@ -135,7 +133,7 @@ export class ClassWork extends Work {
earnings = newWorkStats();
constructor(params?: ClassWorkParams) {
super();
super(WorkType.CLASS);
this.classType = params?.classType ?? ClassType.StudyComputerScience;
this.location = params?.location ?? LocationName.Sector12RothmanUniversity;
this.singularity = params?.singularity ?? false;