XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Many to one content processing...

Last post 05-16-2008 10:52 AM by Shawn Hargreaves. 2 replies.
  • 05-15-2008 8:03 PM

    Many to one content processing...

    I want to write a content processor that will read multiple input files and produce a single binary result file.  I could pretty easily process an XML file that tells the file names of the other files, but then Visual Studio would not know when those files are changed and it needs to rebuild if one of the referenced sources changed.  Anyone know how to do this?

  • 05-16-2008 4:39 AM In reply to

    Re: Many to one content processing...

    Go with the XML approach and then in that processer call ContentProcessorContext.AddDependency(...)
    That will tell the content processor to check the dependant files for changes at build time!
    Brandon Bloom - Hey, I finally work here :-)
    Software Design Engineer
    XNA Community Game Platform
  • 05-16-2008 10:52 AM In reply to

    Re: Many to one content processing...

    You can also use context.BuildAndLoadAsset, which will call into another importer to read the data for you, and automatically record the dependency.
    XNA Framework Developer - blog - homepage
Page 1 of 1 (3 items) Previous Next