I am currently experimenting with XNA Content Pipeline extensions. As part of this experiment, I am trying to upload a file containing another content item that needs to be downloaded. For instance:
public class CustomItem { public string Name; public Texture2D Texture; }
Now in my content handler, I can create a new instance of "CustomItem" and initialize the "Name" field, as this is just a string. However, I cannot load the texture file while compiling the content (NOTE: Texture is just an example, ideally I would like to be able to load any other type of content).
What I'm looking for is something like:
Does anyone know if this is really possible, and if so, how to do it? I would prefer not to follow the path of late loading of other content elements, if possible, or to create my own content loading using binary readers and writers.
source share