Skip to content

Commit d11d275

Browse files
authored
Merge pull request #406 from the-hideout/btr-waypoints
Btr waypoints
2 parents e1fdd4d + 6b23a6e commit d11d275

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ type Map {
824824
lootLoose: [LootLoosePosition]
825825
stationaryWeapons: [StationaryWeaponPosition]
826826
artillery: MapArtillerySettings
827+
btrStops: [MapPositionNamed]
827828
#svg: MapSvg
828829
}
829830
@@ -879,6 +880,13 @@ type MapPosition {
879880
z: Float!
880881
}
881882
883+
type MapPositionNamed {
884+
name: String
885+
x: Float!
886+
y: Float!
887+
z: Float!
888+
}
889+
882890
type MapSpawn {
883891
zoneName: String
884892
position: MapPosition!

0 commit comments

Comments
 (0)