Skip to content

Commit 53a83ae

Browse files
committed
Merge branch 'btr-waypoints' of https://github.com/the-hideout/tarkov-api into btr-routes
2 parents 0e4efbe + 6b23a6e commit 53a83ae

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

resolvers/mapResolver.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ export default {
114114
return context.data.worker.map.getLocale(data.name, context, info);
115115
},
116116
},
117+
MapPositionNamed: {
118+
name(data, args, context, info) {
119+
return context.data.worker.map.getLocale(data.name, context, info);
120+
},
121+
},
117122
MapSwitch: {
118123
/*door(data, args, context) {
119124

schema-static.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ type Map {
824824
lootLoose: [LootLoosePosition]
825825
stationaryWeapons: [StationaryWeaponPosition]
826826
artillery: MapArtillerySettings
827-
btrRoutes: [Route]
827+
btrStops: [MapPositionNamed]
828828
#svg: MapSvg
829829
}
830830
@@ -880,6 +880,13 @@ type MapPosition {
880880
z: Float!
881881
}
882882
883+
type MapPositionNamed {
884+
name: String
885+
x: Float!
886+
y: Float!
887+
z: Float!
888+
}
889+
883890
type MapSpawn {
884891
zoneName: String
885892
position: MapPosition!
@@ -1050,10 +1057,6 @@ enum RequirementType {
10501057
stationLevel
10511058
}
10521059
1053-
type Route {
1054-
waypoints: [MapPosition]
1055-
}
1056-
10571060
type ServerStatus {
10581061
generalStatus: Status
10591062
currentStatuses: [Status]

0 commit comments

Comments
 (0)