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
Mostra file Open project: demiurghg/FusionEngine

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetFullPath ( string relative ) : string

UserStorage ( Game Game ) : System

Method Details

CreateDirectory() public method

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

CreateFile() public method

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

DeleteDirectory() public method

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

DeleteFile() public method

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

DirectoryExists() public method

public DirectoryExists ( string directory ) : bool
directory string
return bool

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FileExists() public method

public FileExists ( string directory ) : bool
directory string
return bool

GetFiles() public method

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

OpenFile() public method

public OpenFile ( string file, FileMode fileMode ) : Stream
file string
fileMode FileMode
return Stream

OpenFile() public method

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

OpenFile() public method

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
return Stream