This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class SavedGameStore<T extends object> { | |
| private prev: { [key: string]: string } = {}; | |
| private next: { [key: string]: string } = {}; | |
| constructor(private options: ISaveGameOptions = {}) {} | |
| /** Return a list of saved games. */ | |
| public list(): ISavedGameRoot[] { | |
| /** Get all the local storage keys that begin with the word 'save'. */ | |
| return Object.keys(localStorage) |
NewerOlder