mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 16:26:33 +00:00
Merge pull request #61 from NewHappyRabbit/maps
Added Mars. Excluded from public lobby playlist. Changed Africa image…
This commit is contained in:
@@ -13,6 +13,7 @@ export const MapDescription: Record<keyof typeof GameMapType, string> = {
|
||||
BlackSea: "Black Sea",
|
||||
Africa: "Africa",
|
||||
Asia: "Asia",
|
||||
Mars: "Mars",
|
||||
};
|
||||
|
||||
@customElement("map-display")
|
||||
|
||||
@@ -6,6 +6,7 @@ import northAmerica from "../../../resources/maps/NorthAmerica.png";
|
||||
import blackSea from "../../../resources/maps/BlackSea.png";
|
||||
import africa from "../../../resources/maps/Africa.png";
|
||||
import asia from "../../../resources/maps/Asia.png";
|
||||
import mars from "../../../resources/maps/Mars.png";
|
||||
|
||||
import { GameMapType } from "../../core/game/Game";
|
||||
|
||||
@@ -27,6 +28,8 @@ export function getMapsImage(map: GameMapType): string {
|
||||
return africa;
|
||||
case GameMapType.Asia:
|
||||
return asia;
|
||||
case GameMapType.Mars:
|
||||
return mars;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user