Added nanostore logic to centralise data

This commit is contained in:
Alexis
2023-10-13 17:19:58 +02:00
parent 4e1927bf02
commit e654d3f96a
7 changed files with 98 additions and 30 deletions

View File

@@ -1,11 +1,12 @@
export type MapMarkerGroup = "capitals" | "cities" | "towns" | "landmarks";
export type MapCoords = {
x: number,
y: number,
}
export type MapMarker = {
title: string,
markerCoords: {
x: number,
y: number,
}
markerCoords: MapCoords,
description?: string,
link?: string,
group?: MapMarkerGroup,
@@ -13,10 +14,7 @@ export type MapMarker = {
export type PlayerMarker = {
title: string,
markerCoords: {
x: number,
y: number,
}
markerCoords: MapCoords,
description?: string,
link?: string,
}