Initial commit

This commit is contained in:
2023-10-03 21:57:18 +02:00
commit 0c78d614bf
24 changed files with 1570 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
export enum Job {
BOTANIST = "botanist",
MINER = "miner",
}
export function jobFromString(str: string): Job | null {
switch (str.toLowerCase()) {
case "botanist":
return Job.BOTANIST;
case "miner":
return Job.MINER;
default:
return null;
}
}