Can XNA Content Pipeline split one content file into several .xnb?

Posted by Zeta Two on Game Development See other posts from Game Development or by Zeta Two
Published on 2011-03-28T14:07:11Z Indexed on 2012/09/04 9:50 UTC
Read the original article Hit count: 159

Filed under:
|
|

Let's say I have an xml file which looks like this

<Weapons>
 <Weapon>
  <Name>Pistol</Name>
  ...
 </Weapon>
 <Weapon>
  <Name>MachineGun</Name>
  ...
 </Weapon>
</Weapons>

Would it be possible to use a custom importer/writer/reader to create two files, Pistol.xnb and MachineGun.xnb which I can load individually with Content.Load()?

While writing this I realized I could just import a Weapon[] list and split them up with a helper, but I'm still wondering if this is possible?

© Game Development or respective owner

Related posts about XNA

Related posts about pipeline