C# Class OpenRA.FileSystem.FileSystem

Inheritance: IReadOnlyFileSystem
Mostra file Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
Exists ( string filename ) : bool
FileSystem ( Manifest>.IReadOnlyDictionary installedMods ) : System
LoadFromManifest ( Manifest manifest ) : void
Mount ( IReadOnlyPackage package, string explicitName = null ) : void
Mount ( string name, string explicitName = null ) : void
Open ( string filename ) : Stream
OpenPackage ( string filename ) : IReadOnlyPackage
OpenPackage ( string filename, IReadOnlyPackage parent ) : IReadOnlyPackage
TryGetPackageContaining ( string path, IReadOnlyPackage &package, string &filename ) : bool
TryOpen ( string filename, Stream &s ) : bool
Unmount ( IReadOnlyPackage package ) : bool
UnmountAll ( ) : void

Private Methods

Method Description
GetFromCache ( string filename ) : Stream

Method Details

Exists() public method

public Exists ( string filename ) : bool
filename string
return bool

FileSystem() public method

public FileSystem ( Manifest>.IReadOnlyDictionary installedMods ) : System
installedMods Manifest>.IReadOnlyDictionary
return System

LoadFromManifest() public method

public LoadFromManifest ( Manifest manifest ) : void
manifest Manifest
return void

Mount() public method

public Mount ( IReadOnlyPackage package, string explicitName = null ) : void
package IReadOnlyPackage
explicitName string
return void

Mount() public method

public Mount ( string name, string explicitName = null ) : void
name string
explicitName string
return void

Open() public method

public Open ( string filename ) : Stream
filename string
return Stream

OpenPackage() public method

public OpenPackage ( string filename ) : IReadOnlyPackage
filename string
return IReadOnlyPackage

OpenPackage() public method

public OpenPackage ( string filename, IReadOnlyPackage parent ) : IReadOnlyPackage
filename string
parent IReadOnlyPackage
return IReadOnlyPackage

TryGetPackageContaining() public method

public TryGetPackageContaining ( string path, IReadOnlyPackage &package, string &filename ) : bool
path string
package IReadOnlyPackage
filename string
return bool

TryOpen() public method

public TryOpen ( string filename, Stream &s ) : bool
filename string
s Stream
return bool

Unmount() public method

public Unmount ( IReadOnlyPackage package ) : bool
package IReadOnlyPackage
return bool

UnmountAll() public method

public UnmountAll ( ) : void
return void