C# Class GameGraphics.SpriteStore

Mostrar archivo Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Methods

Method Description
GetSprite ( int id ) : Sprite

Returns a sprite based on the given ID.

LoadSprites ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void

This method uses the games content manager to load all the sprites used in the game. This is to be called in the LoadContent method

Method Details

GetSprite() public method

Returns a sprite based on the given ID.
public GetSprite ( int id ) : Sprite
id int The ID of the sprite requested
return Sprite

LoadSprites() public method

This method uses the games content manager to load all the sprites used in the game. This is to be called in the LoadContent method
public LoadSprites ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager Content the content manager used by the games LoadContent method
return void