allbuild commit e6d14eff

This commit is contained in:
Olivier Gagnon
2022-07-26 15:30:12 -04:00
parent e6d14eff68
commit 3e4f26ac0a
17 changed files with 230 additions and 44 deletions
+19 -10
View File
@@ -12,18 +12,18 @@ import { Work, WorkType } from "./Work";
import { applyWorkStats, newWorkStats, sumWorkStats, WorkStats } from "./WorkStats";
export enum ClassType {
StudyComputerScience = "StudyComputerScience",
DataStructures = "DataStructures",
Networks = "Networks",
Algorithms = "Algorithms",
StudyComputerScience = "STUDYCOMPUTERSCIENCE",
DataStructures = "DATASTRUCTURES",
Networks = "NETWORKS",
Algorithms = "ALGORITHMS",
Management = "Management",
Leadership = "Leadership",
Management = "MANAGEMENT",
Leadership = "LEADERSHIP",
GymStrength = "GymStrength",
GymDefense = "GymDefense",
GymDexterity = "GymDexterity",
GymAgility = "GymAgility",
GymStrength = "GYMSTRENGTH",
GymDefense = "GYMDEFENSE",
GymDexterity = "GYMDEXTERITY",
GymAgility = "GYMAGILITY",
}
export interface Class {
@@ -179,6 +179,15 @@ export class ClassWork extends Work {
}
}
APICopy(): Record<string, unknown> {
return {
type: this.type,
cyclesWorked: this.cyclesWorked,
classType: this.classType,
location: this.location,
};
}
/**
* Serialize the current object to a JSON save state.
*/