AgateLib.AgateFileProvider Class Reference

Provides an interface for opening files. Objects implementing IFileProvider can be added to separate lists for images, sounds, etc. which are used to find files when Surfaces, SoundBuffers, etc. are constructed. More...

List of all members.

Static Public Member Functions

static string SaveStreamToTempFile (Stream stream)
 Saves a stream to a file in the temp path.

Properties

static FileProviderList Assemblies [get]
 The file provider for getting driver assemblies. It is not recommended that you use this because it will cause assemblies to be loaded in the "LoadFrom" context. Instead, place driver assemblies in the same directory as the application.
static FileProviderList Images [get]
 A list of the default file providers for opening images when a Surface is constructed.
static FileProviderList Sounds [get]
 A list of the default file providers for opening sounds when a SoundBuffer is constructed.
static FileProviderList Music [get]
 A list of the default file providers for opening sounds when a Music object is constructed.
static FileProviderList Resources [get]
 A list of the default file providers for opening resources.


Detailed Description

Provides an interface for opening files. Objects implementing IFileProvider can be added to separate lists for images, sounds, etc. which are used to find files when Surfaces, SoundBuffers, etc. are constructed.


Member Function Documentation

static string AgateLib.AgateFileProvider.SaveStreamToTempFile ( Stream  stream  )  [static]

Saves a stream to a file in the temp path.

Parameters:
stream 
Returns:


Property Documentation

FileProviderList AgateLib.AgateFileProvider.Assemblies [static, get]

The file provider for getting driver assemblies. It is not recommended that you use this because it will cause assemblies to be loaded in the "LoadFrom" context. Instead, place driver assemblies in the same directory as the application.

FileProviderList AgateLib.AgateFileProvider.Images [static, get]

A list of the default file providers for opening images when a Surface is constructed.

FileProviderList AgateLib.AgateFileProvider.Music [static, get]

A list of the default file providers for opening sounds when a Music object is constructed.

FileProviderList AgateLib.AgateFileProvider.Resources [static, get]

A list of the default file providers for opening resources.

FileProviderList AgateLib.AgateFileProvider.Sounds [static, get]

A list of the default file providers for opening sounds when a SoundBuffer is constructed.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo