Implemented factory for ModMetadataReaders

This commit is contained in:
Kir_Antipov 2021-12-07 21:40:57 +03:00
parent 98e5542fe5
commit 0844ce3a92

View 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)}"`);
}
}
}