Example #1
0
        public Texture2D GetTexture(ContentItem contentItem)
        {
            string key = StringEnum.GetStringValue(contentItem);

            return(this.Content.Load <Texture2D>(key));
        }
Example #2
0
        public Song GetSong(ContentItem contentItem)
        {
            string key = StringEnum.GetStringValue(contentItem);

            return(this.Content.Load <Song>(key));
        }
Example #3
0
        public SoundEffect GetSoundEffect(ContentItem contentItem)
        {
            string key = StringEnum.GetStringValue(contentItem);

            return(this.Content.Load <SoundEffect>(key));
        }
Example #4
0
        public SpriteFont GetSpriteFont(ContentItem contentItem)
        {
            string key = StringEnum.GetStringValue(contentItem);

            return(this.Content.Load <SpriteFont>(key));
        }