diff --git a/catalog/catalog-image/catalog-image-type/index.ts b/catalog/catalog-image/catalog-image-type/index.ts new file mode 100644 index 0000000..b658ac9 --- /dev/null +++ b/catalog/catalog-image/catalog-image-type/index.ts @@ -0,0 +1 @@ +export type CatalogImageType = `pixelArt`; diff --git a/catalog/catalog-image/index.ts b/catalog/catalog-image/index.ts new file mode 100644 index 0000000..1d03056 --- /dev/null +++ b/catalog/catalog-image/index.ts @@ -0,0 +1,16 @@ +import { CatalogImageType } from "./catalog-image-type"; + +export { CatalogImageType } from "./catalog-image-type"; + +export type CatalogImage = { + /** + * The second half of the URL for the image. Must refer to an existing PNG or + * JPEG. + */ + readonly urlSuffix: string; + + /** + * The type of image content. + */ + readonly type: CatalogImageType; +}; diff --git a/catalog/catalog-localization/index.ts b/catalog/catalog-localization/index.ts index 2755680..f4af35c 100644 --- a/catalog/catalog-localization/index.ts +++ b/catalog/catalog-localization/index.ts @@ -1,3 +1,5 @@ +import { CatalogImage } from "../catalog-image"; + /** * A localization of a catalog. */ @@ -14,8 +16,8 @@ export type CatalogLocalization = { readonly uiName: string; /** - * The second half of the URL for the localization's icon. Must refer to an - * existing PNG or JPEG. + * The square icon used to represent the localization. May be cropped to a + * circle. */ - readonly iconUrlSuffix: string; + readonly icon: CatalogImage; }; diff --git a/catalog/index.ts b/catalog/index.ts index 446721e..9b434b7 100644 --- a/catalog/index.ts +++ b/catalog/index.ts @@ -7,6 +7,8 @@ export { CatalogGame, } from "./catalog-game"; +export { CatalogImage } from "./catalog-image"; + export { CatalogLocalization } from "./catalog-localization"; /**