Skip to content

Commit 701c45c

Browse files
committed
refactor: add list of legal file types to shared lib
Importable arrays of various file extensions the game allows
1 parent 2e2554b commit 701c45c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/shared/src/lib/Shared.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ export function shared(): string {
22
return 'shared';
33
}
44

5+
export const imageFileExtensions = ['.bmp', '.png', '.jpg', '.jpeg'];
6+
export const scriptFileExtensions = ['.ini', '.txt', '.lua', '.cfg'];
7+
export const soundFileExtensions = ['.wav', '.ogg', '.mp3', '.flac'];
8+
export const legalFileExtensions = [
9+
...imageFileExtensions,
10+
...scriptFileExtensions,
11+
...soundFileExtensions,
12+
];

0 commit comments

Comments
 (0)