C# Class GameGraphics.SpriteStore

Afficher le fichier Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

LoadSprites() public méthode

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
Résultat void