Reset Command Added

master
j 2024-04-05 01:54:34 -04:00
parent da9b7f9114
commit b3a0a026cb
1 changed files with 8 additions and 0 deletions

View File

@ -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