Class:RestoreManager
Defined in: adventure/RestoreManager.js, line 5
Todos: Restore from adventurejs.com web server.
Description
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
clickClose()
Defined in: adventure/RestoreManager.js, line 525
clickSubmit
clickSubmit()
Defined in: adventure/RestoreManager.js, line 539
closeDialog
closeDialog()
Defined in: adventure/RestoreManager.js, line 488
fileReaderOnload
fileReaderOnload()
Defined in: adventure/RestoreManager.js, line 583
getLocalStorageList
getLocalStorageList()
Defined in: adventure/RestoreManager.js, line 649
openDialog
openDialog()
Defined in: adventure/RestoreManager.js, line 452
resetDialog
resetDialog()
Defined in: adventure/RestoreManager.js, line 476
resetLocalStorageListBox
resetLocalStorageListBox()
Defined in: adventure/RestoreManager.js, line 685
restoreFromBrowser
restoreFromBrowser()
Defined in: adventure/RestoreManager.js, line 617
restoreFromFile
restoreFromFile()
Defined in: adventure/RestoreManager.js, line 564
restoreFromServer
restoreFromServer()
Defined in: adventure/RestoreManager.js, line 719
selectTab
selectTab()
Defined in: adventure/RestoreManager.js, line 729
set
set(props) → {adventurejs.RestoreManager}
Defined in: adventure/RestoreManager.js, line 748
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
game :Object
Defined in: adventure/RestoreManager.js, line 33
Default value: {}
restore_dialog
restore_dialog :HTMLElement
Defined in: adventure/RestoreManager.js, line 64
Default value: {}
restoreButtons
restoreButtons :Array
Defined in: adventure/RestoreManager.js, line 56
Default value: []
restorePanes
restorePanes :Array
Defined in: adventure/RestoreManager.js, line 48
Default value: []
restoreTabs
restoreTabs :Array
Defined in: adventure/RestoreManager.js, line 40
Default value: []