diff --git a/src/client/utilities/Maps.ts b/src/client/utilities/Maps.ts new file mode 100644 index 000000000..6325b3073 --- /dev/null +++ b/src/client/utilities/Maps.ts @@ -0,0 +1,29 @@ +import world from "../../../resources/maps/WorldMap.png"; +import oceania from "../../../resources/maps/Oceania.png"; +import europe from "../../../resources/maps/Europe.png"; +import mena from "../../../resources/maps/Mena.png"; +import northAmerica from "../../../resources/maps/NorthAmerica.png"; +import blackSea from "../../../resources/maps/BlackSea.png"; +import africa from "../../../resources/maps/Africa.png"; +import { GameMapType } from "../../core/game/Game"; + +export function getMapsImage(map: GameMapType): string { + switch (map) { + case GameMapType.World: + return world; + case GameMapType.Oceania: + return oceania; + case GameMapType.Europe: + return europe; + case GameMapType.Mena: + return mena; + case GameMapType.NorthAmerica: + return northAmerica; + case GameMapType.BlackSea: + return blackSea; + case GameMapType.Africa + return Africa; + default: + return ""; + } +}