MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.ContentManager Class Reference

Manager used to load content into an object and into memory More...

Public Member Functions

 ContentManager (string contentDirectory)
 Initialize the ContentManager
Load< T > (string fileToLoad)
 Load a piece of content from the content directory
void Unload (IContent content)
 Unload the content from the game
void Unload (string fileToUnload)
 Unload the content from the game
void Dispose ()
 Used to explicitly free all resources currently in use by this object before destruction

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose any and all objects, either managed or unmanaged at the end of this objects lifespan

Detailed Description

Manager used to load content into an object and into memory

Constructor & Destructor Documentation

MuGameFramework.ContentManager.ContentManager ( string  contentDirectory)

Initialize the ContentManager

Parameters
contentDirectoryDirectory that all content is contained in

Member Function Documentation

virtual void MuGameFramework.ContentManager.Dispose ( bool  disposing)
protectedvirtual

Dispose any and all objects, either managed or unmanaged at the end of this objects lifespan

Parameters
disposingDispose of Managed objects?
void MuGameFramework.ContentManager.Dispose ( )

Used to explicitly free all resources currently in use by this object before destruction

T MuGameFramework.ContentManager.Load< T > ( string  fileToLoad)

Load a piece of content from the content directory

Template Parameters
TType of content to load
Parameters
fileToLoadName of file to load
Returns
Loaded file
Type Constraints
T :IContent 
void MuGameFramework.ContentManager.Unload ( IContent  content)

Unload the content from the game

Parameters
contentObject to unload
void MuGameFramework.ContentManager.Unload ( string  fileToUnload)

Unload the content from the game

Parameters
fileToUnloadFile To Unload

The documentation for this class was generated from the following file: