Hey guys. I'm working in XNA.
I'm basically trying to have a Data/Asset Manager class that holds everything that's loaded in by the ContentManager.
I'm trying to have a property that's essentially something along the lines of
Dictionary<T, Dictionary<string, T>> listOfObjects;
My hope is to be able to get objects doing something like
Texture2D texture = listOfObjects<Texture2D>("nameOfTexture"); SpriteFont font = listOfObjects<SpriteFont>("nameOfFont"); // etc.
Any help and / or suggestions? Thank you so much in advance