C# Class Fusion.Engine.Storage.UserStorage

User storage refers to the read-write storage supported by the game platform for saving information from the game at runtime. The data can be associated with a particular player's profile, or available to all players.
Inheritance: System.DisposableBase
Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode Description
CreateDirectory ( string directory ) : void

Creates a new directory in the UserStorage scope.

CreateFile ( string file ) : Stream

Creates a file with read/write access at a specified path in the UserStorage.

DeleteDirectory ( string directory ) : void

Removes directory and all subdirectories and files in UserStorage scope

DeleteFile ( string file ) : void

Creates a file with read/write access at a specified path in the UserStorage.

DirectoryExists ( string directory ) : bool

FileExists ( string directory ) : bool

GetFiles ( string directory, string searchPattern, bool recursive ) : string[]

OpenFile ( string file, FileMode fileMode ) : Stream

OpenFile ( string file, FileMode fileMode, FileAccess fileAccess ) : Stream

OpenFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : Stream

Creates a file with read/write access at a specified path in the UserStorage.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
GetFullPath ( string relative ) : string

UserStorage ( Game Game ) : System

Method Details

CreateDirectory() public méthode

Creates a new directory in the UserStorage scope.
public CreateDirectory ( string directory ) : void
directory string
Résultat void

CreateFile() public méthode

Creates a file with read/write access at a specified path in the UserStorage.
public CreateFile ( string file ) : Stream
file string
Résultat Stream

DeleteDirectory() public méthode

Removes directory and all subdirectories and files in UserStorage scope
public DeleteDirectory ( string directory ) : void
directory string
Résultat void

DeleteFile() public méthode

Creates a file with read/write access at a specified path in the UserStorage.
public DeleteFile ( string file ) : void
file string
Résultat void

DirectoryExists() public méthode

public DirectoryExists ( string directory ) : bool
directory string
Résultat bool

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FileExists() public méthode

public FileExists ( string directory ) : bool
directory string
Résultat bool

GetFiles() public méthode

public GetFiles ( string directory, string searchPattern, bool recursive ) : string[]
directory string
searchPattern string
recursive bool
Résultat string[]

OpenFile() public méthode

public OpenFile ( string file, FileMode fileMode ) : Stream
file string
fileMode FileMode
Résultat Stream

OpenFile() public méthode

public OpenFile ( string file, FileMode fileMode, FileAccess fileAccess ) : Stream
file string
fileMode FileMode
fileAccess FileAccess
Résultat Stream

OpenFile() public méthode

Creates a file with read/write access at a specified path in the UserStorage.
public OpenFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : Stream
file string
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
Résultat Stream