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 NodeType {
UNSPOILED = "unspoiled",
LEGENDARY = "legendary",
}
export function nodeTypeFromString(str: string): NodeType | null {
switch (str.toLowerCase()) {
case "unspoiled":
return NodeType.UNSPOILED;
case "legendary":
return NodeType.LEGENDARY;
default:
return null;
}
}