AgateLib.Resources.AgateResourceLoader Class Reference

Statis class which loads and saves AgateResourceCollection objects to disk. More...

List of all members.

Static Public Member Functions

static void SaveResources (AgateResourceCollection resources, string filename)
 Saves the resources to a file located in the Filename property.
static AgateResourceCollection LoadResources (string filename)
 Static method which creates a resource manager based on the contents of a file.
static AgateResourceCollection LoadResources (Stream stream)
 Loads the resource information from a stream containing XML data. This erases all information in the current AgateResourceCollection.

Properties

static bool ThrowOnReadError [get, set]
 Gets or sets a bool value indicating whether or not an exception is thrown if an unknown resource type is encountered when reading an XML file.


Detailed Description

Statis class which loads and saves AgateResourceCollection objects to disk.


Member Function Documentation

static AgateResourceCollection AgateLib.Resources.AgateResourceLoader.LoadResources ( Stream  stream  )  [static]

Loads the resource information from a stream containing XML data. This erases all information in the current AgateResourceCollection.

Parameters:
stream 

static AgateResourceCollection AgateLib.Resources.AgateResourceLoader.LoadResources ( string  filename  )  [static]

Static method which creates a resource manager based on the contents of a file.

Parameters:
filename 
Returns:

static void AgateLib.Resources.AgateResourceLoader.SaveResources ( AgateResourceCollection  resources,
string  filename 
) [static]

Saves the resources to a file located in the Filename property.


Property Documentation

bool AgateLib.Resources.AgateResourceLoader.ThrowOnReadError [static, get, set]

Gets or sets a bool value indicating whether or not an exception is thrown if an unknown resource type is encountered when reading an XML file.


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