Reset Command Added
parent
da9b7f9114
commit
b3a0a026cb
|
@ -77,6 +77,14 @@ class GameState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resets the current game state by saving the current state and then resetting the game state in the database.
|
||||||
|
*/
|
||||||
|
public async reset() {
|
||||||
|
await DatabaseService.saveGameState(this.authorId, this);
|
||||||
|
await DatabaseService.resetGameState(this.authorId)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default GameState
|
export default GameState
|
||||||
|
|
Loading…
Reference in New Issue