Bugfix: move GameStateService declaration before instantiation (#2)

issue-2
Garrett Mills 4 years ago
parent fcf8d2a1c3
commit 610bfea7fb
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -1,11 +1,5 @@
import { Player, GridCellState, GameState, clone } from '../module/util.js'
// Export a single instance, so it can be shared by all files
// To use the game state service, you should do:
// import game_service from './services/GameState.service.js'
const game_service = new GameStateService()
export default game_service
/**
* Singleton service for managing the state of the game.
*/
@ -145,3 +139,9 @@ export class GameStateService {
})
}
}
// Export a single instance, so it can be shared by all files
// To use the game state service, you should do:
// import game_service from './services/GameState.service.js'
const game_service = new GameStateService()
export default game_service

Loading…
Cancel
Save