using ActionGame.RawResources.Repository;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Content;


namespace ActionGame.RawResources.Manager
{
    public class DefaultRawContentManager : IRawContentManager
    {
        public IRawContentRepository<SpriteFont> FontRepository { get; private set; }
        public IRawContentRepository<Song> SongRepository { get; private set; }
        public IRawContentRepository<Texture2D> TextureRepository { get; private set; }
        public IRawContentRepository<SoundEffect> SoundEffectRepository { get; private set; }


        public DefaultRawContentManager(ContentManager contentManager)
        {
            this.FontRepository = new FileRawContentRepository<SpriteFont>(contentManager, "fonts.csv");
            this.SongRepository = new FileRawContentRepository<Song>(contentManager, "songs.csv");
            this.TextureRepository = new FileRawContentRepository<Texture2D>(contentManager, "textures.csv");
            this.SoundEffectRepository = new FileRawContentRepository<SoundEffect>(contentManager, "soundeffects.csv");
        }

    }
}
