Class: RestoreManager
Defined in: adventure/RestoreManager.js, line 6
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 |
clickButton_Close()
Defined in: adventure/RestoreManager.js, line 612
clickRestoreButton_Browser()
Defined in: adventure/RestoreManager.js, line 678
clickRestoreButton_File()
Defined in: adventure/RestoreManager.js, line 630
clickRestoreButton_Server()
Defined in: adventure/RestoreManager.js, line 780
closeDisplay()
Defined in: adventure/RestoreManager.js, line 597
fileReaderOnload()
Defined in: adventure/RestoreManager.js, line 649
getLocalStorageList()
Defined in: adventure/RestoreManager.js, line 706
openDisplay()
Defined in: adventure/RestoreManager.js, line 573
resetDisplay()
Defined in: adventure/RestoreManager.js, line 584
resetLocalStorageListBox()
Defined in: adventure/RestoreManager.js, line 745
selectTab()
Defined in: adventure/RestoreManager.js, line 790
set(props) → {adventurejs.RestoreManager}
Defined in: adventure/RestoreManager.js, line 809
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 34
Default value: {}
restoreButtons :Array
Defined in: adventure/RestoreManager.js, line 57
Default value: []
restoreClose :HTMLElement
Defined in: adventure/RestoreManager.js, line 86
Default value: {}
restoreDisplay :HTMLElement
Defined in: adventure/RestoreManager.js, line 65
Default value: {}
restoreDisplayTitle :HTMLElement
Defined in: adventure/RestoreManager.js, line 106
Default value: {}
restorePane_Browser :HTMLElement
Defined in: adventure/RestoreManager.js, line 375
Default value: {}
restorePane_File :HTMLElement
Defined in: adventure/RestoreManager.js, line 220
Default value: {}
restorePane_Server :HTMLElement
Defined in: adventure/RestoreManager.js, line 512
Default value: {}
restorePanes :Array
Defined in: adventure/RestoreManager.js, line 49
Default value: []
restoreRowPanes :HTMLElement
Defined in: adventure/RestoreManager.js, line 208
Default value: {}
restoreRowTabs :HTMLElement
Defined in: adventure/RestoreManager.js, line 119
Default value: {}
restoreTab_Browser :HTMLElement
Defined in: adventure/RestoreManager.js, line 158
Default value: {}
restoreTab_File :HTMLElement
Defined in: adventure/RestoreManager.js, line 131
Default value: {}
restoreTab_Server :HTMLElement
Defined in: adventure/RestoreManager.js, line 185
Default value: {}
restoreTabs :Array
Defined in: adventure/RestoreManager.js, line 41
Default value: []
saveDisplay :HTMLElement
Defined in: adventure/SaveManager.js, line 68
Default value: {}