Add helper to get the current game state (#3)

master
Garrett Mills 4 years ago
parent bb8592cbb0
commit e9cbd8cf09
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -230,6 +230,14 @@ export class GameStateService {
return(this.get_player_score() / this.get_progress() )
}
/**
* Get the current game state.
* @return {GameState}
*/
get_game_state() {
return clone(this.current_state)
}
/**
* responsible for advancing the game state
* will be consisting of

Loading…
Cancel
Save