mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 18:01:07 -05:00
Implemented factory for ModMetadataReader
s
This commit is contained in:
parent
98e5542fe5
commit
0844ce3a92
1 changed files with 11 additions and 0 deletions
11
src/metadata/mod-metadata-reader-factory.ts
Normal file
11
src/metadata/mod-metadata-reader-factory.ts
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import ModLoaderType from "./mod-loader-type";
|
||||||
|
import ModMetadataReader from "./mod-metadata-reader";
|
||||||
|
|
||||||
|
export default class ModMetadataReaderFactory {
|
||||||
|
public create(loaderType: ModLoaderType): ModMetadataReader {
|
||||||
|
switch (loaderType) {
|
||||||
|
default:
|
||||||
|
throw new Error(`Unknown mod loader "${ModLoaderType.toString(loaderType)}"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue