C# 클래스 GameGraphics.SpriteStore

파일 보기 프로젝트 열기: pmyoung/Advanced-Game-Project 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

GetSprite() 공개 메소드

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

LoadSprites() 공개 메소드

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
리턴 void