AgateLib.Resources.AgateResourceCollection Class Reference

Class which wraps an XML based resource file. This class provides methods for adding and extracting resources. More...

List of all members.

Public Member Functions

 AgateResourceCollection ()
 Constructs a new AgateResourceCollection object.
void Add (AgateResource item)
 Adds a resource to this group. An exception is thrown if an item with the same name already exists in the group.
void Clear ()
bool Contains (string resourceName)
bool Remove (string resourceName)
bool TryGetValue (string key, out AgateResource value)
IEnumerator< AgateResourceGetEnumerator ()
bool Contains (AgateResource item)
bool Remove (AgateResource item)

Properties

IEnumerable< SpriteResourceSprites [get]
 Enumerates through the SpriteResources contained in this group of resources.
StringTable Strings [get]
 Gets the StringTable for this langauge.
int Count [get]
ICollection< string > Keys [get]
ICollection< AgateResourceValues [get]
AgateResource this [string key] [get, set]


Detailed Description

Class which wraps an XML based resource file. This class provides methods for adding and extracting resources.


Constructor & Destructor Documentation

AgateLib.Resources.AgateResourceCollection.AgateResourceCollection (  ) 

Constructs a new AgateResourceCollection object.


Member Function Documentation

void AgateLib.Resources.AgateResourceCollection.Add ( AgateResource  item  ) 

Adds a resource to this group. An exception is thrown if an item with the same name already exists in the group.

Parameters:
item 

void AgateLib.Resources.AgateResourceCollection.Clear (  ) 

bool AgateLib.Resources.AgateResourceCollection.Contains ( string  resourceName  ) 

Parameters:
resourceName 
Returns:

IEnumerator<AgateResource> AgateLib.Resources.AgateResourceCollection.GetEnumerator (  ) 

Returns:

bool AgateLib.Resources.AgateResourceCollection.Remove ( string  resourceName  ) 

Parameters:
item 
Returns:


Property Documentation

int AgateLib.Resources.AgateResourceCollection.Count [get]

IEnumerable<SpriteResource> AgateLib.Resources.AgateResourceCollection.Sprites [get]

Enumerates through the SpriteResources contained in this group of resources.

StringTable AgateLib.Resources.AgateResourceCollection.Strings [get]

Gets the StringTable for this langauge.


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