Class:RestoreManager
Defined in: adventure/RestoreManager.js, line 5
Todos: Restore from adventurejs.com web server.
RestoreManager manages the job of restoring saved games. It contains all the methods needed to create the Restore pop-up screen. RestoreManager can restore a game from a local save file, from browser cookies, or from the adventurejs.com web server.
RestoreManager is created automatically by Game. This is an internal class that authors should not need to construct or modify. However, if you'd like to try, you can find styles for the Save & Restore pop-ups in adventurejs.css. All relevant styles are prefixed with '.save_' or '.restore_'.
Private Constructor:
var foo = new adventurejs.RestoreManager(game)
Parameters:
-
game
Game
A reference to the game instance.
- Index
- Methods
- Properties
Index
Methods Collapse all |
clickClose()
Defined in: adventure/RestoreManager.js, line 528
closeDialog()
Defined in: adventure/RestoreManager.js, line 491
fileReaderOnload()
Defined in: adventure/RestoreManager.js, line 561
getLocalStorageList()
Defined in: adventure/RestoreManager.js, line 618
openDialog()
Defined in: adventure/RestoreManager.js, line 455
resetDialog()
Defined in: adventure/RestoreManager.js, line 479
resetLocalStorageListBox()
Defined in: adventure/RestoreManager.js, line 657
restoreFromBrowser()
Defined in: adventure/RestoreManager.js, line 590
restoreFromFile()
Defined in: adventure/RestoreManager.js, line 542
restoreFromServer()
Defined in: adventure/RestoreManager.js, line 692
selectTab()
Defined in: adventure/RestoreManager.js, line 702
set(props) → {adventurejs.RestoreManager}
Defined in: adventure/RestoreManager.js, line 721
Parameters:
-
props
Object
A generic object containing properties to copy to the DisplayObject instance.
Returns:
adventurejs.RestoreManager
Returns the instance the method is called on (useful for chaining calls.)
Properties |
game :Object
Defined in: adventure/RestoreManager.js, line 33
Default value: {}
restore_dialog :HTMLElement
Defined in: adventure/RestoreManager.js, line 64
Default value: {}
restoreButtons :Array
Defined in: adventure/RestoreManager.js, line 56
Default value: []
restorePanes :Array
Defined in: adventure/RestoreManager.js, line 48
Default value: []
restoreTabs :Array
Defined in: adventure/RestoreManager.js, line 40
Default value: []