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:
-
gameGame
A reference to the game instance.
- Index
- Methods
- Properties
Index
Methods Collapse all |
clickClose
clickClose()
Defined in: adventure/RestoreManager.js, line 530
clickSubmit
clickSubmit()
Defined in: adventure/RestoreManager.js, line 544
closeDialog
closeDialog()
Defined in: adventure/RestoreManager.js, line 490
fileReaderOnload
fileReaderOnload()
Defined in: adventure/RestoreManager.js, line 595
getLocalStorageList
getLocalStorageList()
Defined in: adventure/RestoreManager.js, line 676
openDialog
openDialog()
Defined in: adventure/RestoreManager.js, line 453
resetDialog
resetDialog()
Defined in: adventure/RestoreManager.js, line 478
resetLocalStorageListBox
resetLocalStorageListBox()
Defined in: adventure/RestoreManager.js, line 712
restoreFromBrowser
restoreFromBrowser()
Defined in: adventure/RestoreManager.js, line 644
restoreFromFile
restoreFromFile()
Defined in: adventure/RestoreManager.js, line 569
restoreFromServer
restoreFromServer()
Defined in: adventure/RestoreManager.js, line 746
selectTab
selectTab()
Defined in: adventure/RestoreManager.js, line 756
set
set(props) → {adventurejs.RestoreManager}
Defined in: adventure/RestoreManager.js, line 775
Parameters:
-
propsObject
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: []