Add b99.4 Shop Inventories
This commit is contained in:
1 parent
b4228ab177
commit
3c63df20d0
10 files changed
+1153
-119
No files matched your search
@@ -20,6 +20,7 @@ const zoomLevelDisplay = document.getElementById('zoomLevelDisplay');
|
||||
let isNavigating = false;
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
await loadShopData('shop_items.json');
|
||||
await loadTrackData('trackdata_dv.json');
|
||||
await loadPoiData('poi_dv.json');
|
||||
MapData.sortMarkers();
|
||||
@@ -246,6 +247,14 @@ async function loadPoiData(file){
|
||||
}
|
||||
}
|
||||
|
||||
async function loadShopData(file) {
|
||||
let shopData = await (await fetch(new Request(file))).json();
|
||||
for(let item of shopData){
|
||||
MapData.addShopItem(item);
|
||||
}
|
||||
MapData.sortShops();
|
||||
}
|
||||
|
||||
|
||||
let railTrack = {};
|
||||
let curve = {};
|
||||
|
||||
Reference in new issue
Block a user