Skip to content

Commit

Permalink
Update GPS.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jun 21, 2024
1 parent b99c93b commit da3e9b3
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/api/GPS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,26 @@ import Mitt from '../helpers/EventEmitter.js'
const NativeMap = globalThis.Map

class GPS extends Mitt {
static readonly Routes = Routes

#map: Dynmap

Check warning on line 17 in src/api/GPS.ts

View workflow job for this annotation

GitHub Actions / build

'Dynmap' is not defined

Check failure on line 17 in src/api/GPS.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find name 'Dynmap'.
#emittedUnderground = false

get emittedUnderground() {
return this.#emittedUnderground
}

protected set emittedUnderground(val: boolean) {
this.#emittedUnderground = val
}

#lastLoc: undefined | {
x: number
z: number
}

get lastLoc() {
return this.#lastLoc
get map() { return this.#map }

get emittedUnderground() { return this.#emittedUnderground }
protected set emittedUnderground(val: boolean) {
this.#emittedUnderground = val
}

get lastLoc() { return this.#lastLoc }
protected set lastLoc(val: { x: number, z: number }) {
this.#lastLoc = val
}

#map: Map

get map() { return this.#map }
static readonly Routes = Routes

constructor(map: Map) {
super()
Expand Down

0 comments on commit da3e9b3

Please sign in to comment.