CHAPTER 2 ■ SETTING UP DIFFERENT CAMERA MODES IN YOUR 3D WORLD
166
2-14. Write a Custom Content Importer
The Problem
You wanttoloadafileofacustomformatintoyourXNAprojectthroughthecontentpipeline.
Becausetheextensionand/orthestructureofyourfilewillbedifferentfromthefileformats
known to XNA, the default XNA content pipeline does not know how to import and process
yourfileintoausefulgameobject.
The Solution
You will write a custom content importer, capable of reading in the file from disk and format-
tingtheusefuldataintoanobject,readytobeprocessedbyacontentprocessor.Therefore,
this recipe assumes you already know how to create your own content processor. You are
encouraged to read the introduction ...