C# Class Dodgeball.Engine.Assets

Mostrar archivo Open project: schonstal/BLOODBALL

Public Properties

Property Type Description
fonts SpriteFont>.Dictionary
songs Song>.Dictionary
sounds SoundEffect>.Dictionary
sprites Texture2D>.Dictionary

Public Methods

Method Description
addFont ( String name, SpriteFont spriteFont ) : void
addSong ( String name, Song song ) : void
addSound ( String name, SoundEffect sound ) : void
addTexture ( String name, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
getFont ( string name ) : SpriteFont
getSong ( String name ) : Song
getSound ( String name ) : SoundEffect
getTexture ( String name ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

addFont() public static method

public static addFont ( String name, SpriteFont spriteFont ) : void
name String
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
return void

addSong() public static method

public static addSong ( String name, Song song ) : void
name String
song Song
return void

addSound() public static method

public static addSound ( String name, SoundEffect sound ) : void
name String
sound Microsoft.Xna.Framework.Audio.SoundEffect
return void

addTexture() public static method

public static addTexture ( String name, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
name String
texture Microsoft.Xna.Framework.Graphics.Texture2D
return void

getFont() public static method

public static getFont ( string name ) : SpriteFont
name string
return Microsoft.Xna.Framework.Graphics.SpriteFont

getSong() public static method

public static getSong ( String name ) : Song
name String
return Song

getSound() public static method

public static getSound ( String name ) : SoundEffect
name String
return Microsoft.Xna.Framework.Audio.SoundEffect

getTexture() public static method

public static getTexture ( String name ) : Microsoft.Xna.Framework.Graphics.Texture2D
name String
return Microsoft.Xna.Framework.Graphics.Texture2D

Property Details

fonts public_oe property

public Dictionary fonts
return SpriteFont>.Dictionary

songs public_oe property

public Dictionary songs
return Song>.Dictionary

sounds public_oe property

public Dictionary sounds
return SoundEffect>.Dictionary

sprites public_oe property

public Dictionary sprites
return Texture2D>.Dictionary