Loading SpriteFont through a different class than Game.cs
- by MintyAnt
I am trying to load up a single SpriteFont to print some debug information.
In our current game, we load up both Textures and Music through a ResourceManager. They are both loaded with a filestream, and thus do not require Content.Load
SoundEffect soundEffect = SoundEffect.FromStream( fs );
Since this ResourceManager does not inherit from Game or is like Game.cs, I cannot use the usual method:
SpriteFont spriteFont = Content.Load<SpriteFont>(resource.Key.Item2);
Anyone have any idea how I can either:
-Load the SpriteFont a different way
-Create my own Contentmanager