C# Класс Geowigo.Models.CartridgeTag

Provides a static metadata description and cache of a Cartridge.
Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddSavegame ( CartridgeSavegame cs ) : void

Exports a savegame to the isolated storage and adds it to this tag.

CartridgeTag ( WF.Player.Core.Cartridge cart ) : System

Constructs an uncached CartridgeTag from the basic metadata of a Cartridge.

ClearCache ( ) : void

Removes all cache entries in the isolated storage.

CreateLogFile ( ) : GWL

Creates a new log file for this cartridge tag.

GetLastSavegameNameInteger ( string name, string suffixFormat ) : int

Gets the last integer suffix that matches a pattern of names for savegames currently added to the tag.

GetMediaCachePath ( WF.Player.Core.Media media, bool recacheIfFileNotFound ) : string

Gets the path to the cached version of a media.

GetSavegameByNameOrDefault ( string name ) : CartridgeSavegame

Gets a savegame of this cartridge by name, or null if none is found.

ImportOrMakeCache ( ) : void

Imports or create the cache for this CartridgeTag.

RefreshOrAddSavegame ( CartridgeSavegame cs ) : void

Exports a savegame to the isolated storage and adds it to this tag if it is not already there.

RemoveAllLogs ( ) : void

Removes all logs associated to this cartridge tag from isolated storage.

RemoveAllSavegames ( ) : void

Removes all savegames' contents from this tag and the isolated storage.

RemoveSavegame ( CartridgeSavegame cs ) : void

Removes a savegame's contents from the isolated storage and removes it from this tag.

Приватные методы

Метод Описание
ConvertAndWriteFDL ( IsolatedStorageFileStream fs, WF.Player.Core.Media sound ) : void
GetCachePathCore ( WF.Player.Core.Media media ) : string
GetCachePathCore ( string filename ) : string
GetLogFiles ( IsolatedStorageFile isf ) : IEnumerable
ImportOrMakeSoundsCache ( IsolatedStorageFile isf ) : void
ImportSavegamesCache ( IsolatedStorageFile isf ) : void
RaisePropertyChanged ( string propName ) : void

Описание методов

AddSavegame() публичный Метод

Exports a savegame to the isolated storage and adds it to this tag.
public AddSavegame ( CartridgeSavegame cs ) : void
cs CartridgeSavegame The savegame to add.
Результат void

CartridgeTag() публичный Метод

Constructs an uncached CartridgeTag from the basic metadata of a Cartridge.
public CartridgeTag ( WF.Player.Core.Cartridge cart ) : System
cart WF.Player.Core.Cartridge
Результат System

ClearCache() публичный Метод

Removes all cache entries in the isolated storage.
public ClearCache ( ) : void
Результат void

CreateLogFile() публичный Метод

Creates a new log file for this cartridge tag.
public CreateLogFile ( ) : GWL
Результат GWL

GetLastSavegameNameInteger() публичный Метод

Gets the last integer suffix that matches a pattern of names for savegames currently added to the tag.
public GetLastSavegameNameInteger ( string name, string suffixFormat ) : int
name string Name of the savegame root
suffixFormat string Format of the integer suffix
Результат int

GetMediaCachePath() публичный Метод

Gets the path to the cached version of a media.
public GetMediaCachePath ( WF.Player.Core.Media media, bool recacheIfFileNotFound ) : string
media WF.Player.Core.Media
recacheIfFileNotFound bool If true, the cache for this media /// is recreated if its theoretical file path was not found. If false, /// null is returned if
Результат string

GetSavegameByNameOrDefault() публичный Метод

Gets a savegame of this cartridge by name, or null if none is found.
public GetSavegameByNameOrDefault ( string name ) : CartridgeSavegame
name string Name of the savegame to find.
Результат CartridgeSavegame

ImportOrMakeCache() публичный Метод

Imports or create the cache for this CartridgeTag.
public ImportOrMakeCache ( ) : void
Результат void

RefreshOrAddSavegame() публичный Метод

Exports a savegame to the isolated storage and adds it to this tag if it is not already there.
public RefreshOrAddSavegame ( CartridgeSavegame cs ) : void
cs CartridgeSavegame
Результат void

RemoveAllLogs() публичный Метод

Removes all logs associated to this cartridge tag from isolated storage.
public RemoveAllLogs ( ) : void
Результат void

RemoveAllSavegames() публичный Метод

Removes all savegames' contents from this tag and the isolated storage.
public RemoveAllSavegames ( ) : void
Результат void

RemoveSavegame() публичный Метод

Removes a savegame's contents from the isolated storage and removes it from this tag.
public RemoveSavegame ( CartridgeSavegame cs ) : void
cs CartridgeSavegame
Результат void