I’m creating an Xbox application and I have this problem with the content pipeline.
Loading .xnb files is not a problem but I can’t seem to find any helpful tutorials on writing via the content pipeline. I want to write an XML whenever the user presses a custom made "save" button.
I’ve searched the web for "saving game sate" etc. but so far I haven’t found a solution for my case.
So, summarized: is there a way to write data (in XML format) via the content pipeline, if my Save() method is called?
Saving and loading during an XNA game involves a series of asynchronous method calls. You’ll find the objects you need in the Microsoft.Xna.Framework.Storage namespace.
Specifically, you need a StorageDevice and a StorageContainer;
To Save:
Loading is very similar: