C# 클래스 Geowigo.Models.CartridgeSavegame

파일 보기 프로젝트 열기: WFoundation/WF.Player.WinPhone 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CartridgeSavegame System
GetDefaultName string
SetFileProperties void

공개 메소드들

메소드 설명
CartridgeSavegame ( CartridgeTag tag ) : System

Constructs a new savegame metadata container for a Cartridge.

CartridgeSavegame ( CartridgeTag tag, WF gwsMetadata, string gwsFilename ) : System

Constructs a new savegame metadata container for a Cartridge, using metadata from a GWS metadata container.

CartridgeSavegame ( CartridgeTag tag, string name ) : System

Constructs a new savegame metadata container for a Cartridge and a name.

CreateOrReplace ( IsolatedStorageFile isf ) : System.IO.Stream

Creates or replaces the underlying savegame file and opens a writing stream for it.

ExportToIsoStore ( ) : void

Exports the savegame to the isolated storage.

FromIsoStore ( string gwsFilePath, IsolatedStorageFile isf ) : CartridgeSavegame

Imports a savegame from metadata associated to a savegame file.

GetHashColor ( string name ) : Color

Computes the color brush hash that corresponds to a particular name for a savegame.

RemoveFromIsoStore ( ) : void

Removes this savegame's files from the isolated storage.

Rename ( CartridgeTag tag, string name, IsolatedStorageFile isf ) : void

Changes the name of this savegame.

비공개 메소드들

메소드 설명
CartridgeSavegame ( ) : System
GetDefaultName ( CartridgeTag tag ) : string
SetFileProperties ( CartridgeTag tag, string saveFilename = null ) : void

메소드 상세

CartridgeSavegame() 공개 메소드

Constructs a new savegame metadata container for a Cartridge.
public CartridgeSavegame ( CartridgeTag tag ) : System
tag CartridgeTag
리턴 System

CartridgeSavegame() 공개 메소드

Constructs a new savegame metadata container for a Cartridge, using metadata from a GWS metadata container.
public CartridgeSavegame ( CartridgeTag tag, WF gwsMetadata, string gwsFilename ) : System
tag CartridgeTag Cartridge to save.
gwsMetadata WF Metadata of a GWS file.
gwsFilename string
리턴 System

CartridgeSavegame() 공개 메소드

Constructs a new savegame metadata container for a Cartridge and a name.
public CartridgeSavegame ( CartridgeTag tag, string name ) : System
tag CartridgeTag
name string
리턴 System

CreateOrReplace() 공개 메소드

Creates or replaces the underlying savegame file and opens a writing stream for it.
public CreateOrReplace ( IsolatedStorageFile isf ) : System.IO.Stream
isf System.IO.IsolatedStorage.IsolatedStorageFile Isolated storage to use.
리턴 System.IO.Stream

ExportToIsoStore() 공개 메소드

Exports the savegame to the isolated storage.
public ExportToIsoStore ( ) : void
리턴 void

FromIsoStore() 공개 정적인 메소드

Imports a savegame from metadata associated to a savegame file.
public static FromIsoStore ( string gwsFilePath, IsolatedStorageFile isf ) : CartridgeSavegame
gwsFilePath string Path to the GWS savegame file.
isf System.IO.IsolatedStorage.IsolatedStorageFile Isostore file to use to load.
리턴 CartridgeSavegame

GetHashColor() 공개 정적인 메소드

Computes the color brush hash that corresponds to a particular name for a savegame.
public static GetHashColor ( string name ) : Color
name string Name of a savegame.
리턴 Color

RemoveFromIsoStore() 공개 메소드

Removes this savegame's files from the isolated storage.
public RemoveFromIsoStore ( ) : void
리턴 void

Rename() 공개 메소드

Changes the name of this savegame.
public Rename ( CartridgeTag tag, string name, IsolatedStorageFile isf ) : void
tag CartridgeTag
name string
isf System.IO.IsolatedStorage.IsolatedStorageFile
리턴 void