diff --git a/src/metadata/mod-metadata-reader-factory.ts b/src/metadata/mod-metadata-reader-factory.ts new file mode 100644 index 0000000..3abf394 --- /dev/null +++ b/src/metadata/mod-metadata-reader-factory.ts @@ -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)}"`); + } + } +}