Hello,
I need a resource manager for my project, to make sure resources are only loaded once and to make them easily editable by users. Apart from textures, fonts and strings it's very important to me that this manager supports custom types. E.g. I have a "Mosaic" type which is basically a multilayered map that loads and unloads textures on demand. Ideally, mosaics would be defined in the resources somewhat like this:
<resources>
<!-- other resources... textures, fonts, strings, etc -->
<mosaic name="background">
<tileset name="background_small"
basename="resources/back_small_{n}.png"
width="4" height="2"/>
<tileset name="background_medium"
basename="resources/back_medium_{n}.png"
width="8" height="4"/>
<tileset name="background_large"
basename="resources/back_large_{n}.png"
width="20" height="10"/>
</mosaic>
<!-- other resources... -->
</resources>
The question is: Does a class exist that does this for me? That Microsoft resx thing, would that fit the bill? Or would you write your own?
Sorry if the question seems basic, I am quite new to .NET and thanks for your help.