C# 클래스 SuperCaissiere.Engine.Content.MagicContentManager

Load and buffer content item of the game. Content items are declared on class that required them.
상속: Manager
파일 보기 프로젝트 열기: valryon/super-caissiere

공개 메소드들

메소드 설명
AddTexture ( string id, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void

External texture add (Ogmo for example)

Draw ( GameTime gameTime ) : void
GetModel ( String id ) : Model3DContentItem
GetMusic ( String id ) : SuperCaissiere.Engine.Content.SongContentItem

Retrieve a music from its ID

GetSound ( ) : SoundEffect

Retrieve a sound from one of the given ID, choosen randonly

GetSound ( String id ) : SoundEffect

Retrieve a sound from its ID

GetTexture ( String id ) : Microsoft.Xna.Framework.Graphics.Texture2D

Retrieve a texture from its ID

Initialize ( ) : void
MagicContentManager ( Assembly assemblies, Microsoft.Xna.Framework.Content.ContentManager Content ) : System

Assemblies to look at for the content load

Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
GetContent ( String id ) : SuperCaissiere.Engine.Content.ContentItem

Get a content from its Asset Name

addContentItem ( SuperCaissiere.Engine.Content.ContentItem ci ) : void
loadAllContent ( ) : void

Load every content that will be required later

loadContent ( SuperCaissiere.Engine.Content.ContentItem item ) : void

메소드 상세

AddTexture() 공개 메소드

External texture add (Ogmo for example)
public AddTexture ( string id, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
id string
texture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 void

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

GetModel() 공개 메소드

public GetModel ( String id ) : Model3DContentItem
id String
리턴 Model3DContentItem

GetMusic() 공개 메소드

Retrieve a music from its ID
public GetMusic ( String id ) : SuperCaissiere.Engine.Content.SongContentItem
id String
리턴 SuperCaissiere.Engine.Content.SongContentItem

GetSound() 공개 메소드

Retrieve a sound from one of the given ID, choosen randonly
public GetSound ( ) : SoundEffect
리턴 Microsoft.Xna.Framework.Audio.SoundEffect

GetSound() 공개 메소드

Retrieve a sound from its ID
public GetSound ( String id ) : SoundEffect
id String
리턴 Microsoft.Xna.Framework.Audio.SoundEffect

GetTexture() 공개 메소드

Retrieve a texture from its ID
public GetTexture ( String id ) : Microsoft.Xna.Framework.Graphics.Texture2D
id String
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

MagicContentManager() 공개 메소드

Assemblies to look at for the content load
public MagicContentManager ( Assembly assemblies, Microsoft.Xna.Framework.Content.ContentManager Content ) : System
assemblies System.Reflection.Assembly
Content Microsoft.Xna.Framework.Content.ContentManager
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void