Hello there,
I've got a bit of a problem. XNA allows to use XML files, however, it will serialize them into XNB, so the only chance I can edit them is at design-time, not run-time. That is why, I decided to use a normal .NET serialization/deserialization . However, how do I set a folder for all my textures, audio and other files?
As an example of what I want is:
Should I just create a given folder in the Debug/Release folder? Is it a good approach?
Thanks in advance
I've got a bit of a problem. XNA allows to use XML files, however, it will serialize them into XNB, so the only chance I can edit them is at design-time, not run-time. That is why, I decided to use a normal .NET serialization/deserialization . However, how do I set a folder for all my textures, audio and other files?
As an example of what I want is:
Code:
//pseudo code
entity.Deserialize("/textures/ship/ship.xml");
classInstance.Load("audio/battle/fight1.mp3");
...
//so on
Thanks in advance
Comment