C# Class Geowigo.ViewModels.SavegameManager

A manager for creating, renaming savegames.
Show file Open project: WFoundation/WF.Player.WinPhone Class Usage Examples

Public Methods

Method Description
InitSessionSavegames ( CartridgeTag tag, CartridgeSavegame savegameCandidate ) : void

Initializes quick and auto savegames for a new game session.

SaveAndPrompt ( ) : void

Makes a savegame of the currently playing cartridge and prompts the user for a name.

SaveAuto ( ) : void

Makes an auto savegame of the currently playing cartridge, eventually replacing an existing auto savegame for the current game session.

SaveQuick ( ) : void

Makes a quick savegame of the currently playing cartridge, eventually replacing an existing quick savegame for the current game session.

SavegameManager ( AppViewModel appViewModel ) : System

Private Methods

Method Description
CreateAutoSavegame ( CartridgeTag tag ) : CartridgeSavegame
CreateQuickSavegame ( CartridgeTag tag ) : CartridgeSavegame
CreateSavegame ( CartridgeTag tag, string nameRoot, string suffixFormat, bool isQuickSave, bool isAutoSave, CartridgeSavegame>.Dictionary dict ) : CartridgeSavegame
GetCurrentTag ( ) : CartridgeTag
GetSavegameByName ( string name ) : CartridgeSavegame
OnSavegameCustomMessageBoxDismissed ( object sender, Microsoft.Phone.Controls.DismissedEventArgs e ) : void
SaveCore ( CartridgeTag tag, CartridgeSavegame cs, CartridgeSavegame>.Action continuation, bool displayError ) : void
SaveCore ( CartridgeTag tag, CartridgeSavegame>.Dictionary savegameDict, CartridgeSavegame>.Func generator, bool displayError ) : void
ShowNewSavegameMessageBox ( CartridgeSavegame cs ) : void

Method Details

InitSessionSavegames() public method

Initializes quick and auto savegames for a new game session.
public InitSessionSavegames ( CartridgeTag tag, CartridgeSavegame savegameCandidate ) : void
tag Geowigo.Models.CartridgeTag Cartridge being played
savegameCandidate Geowigo.Models.CartridgeSavegame Savegame that started the game session, or null if it is a new game.
return void

SaveAndPrompt() public method

Makes a savegame of the currently playing cartridge and prompts the user for a name.
public SaveAndPrompt ( ) : void
return void

SaveAuto() public method

Makes an auto savegame of the currently playing cartridge, eventually replacing an existing auto savegame for the current game session.
public SaveAuto ( ) : void
return void

SaveQuick() public method

Makes a quick savegame of the currently playing cartridge, eventually replacing an existing quick savegame for the current game session.
public SaveQuick ( ) : void
return void

SavegameManager() public method

public SavegameManager ( AppViewModel appViewModel ) : System
appViewModel AppViewModel
return System