Content Access

How will we be able to access content when apps are running on the XBox

using XNA? Specifically I can access the System.IO namespace on the

Windows platform to load content ( meshes, textures, sounds, etc ).

What is going to be available the XNA framework for the Xbox?

[275 byte] By [MichaelCummings] at [2008-2-7]
# 1
Just after I posted this I saw a post from Shawn saying that the Xbox

System Assemblies are based on the CF 2.0 and that System.IO is

available, so I found my own answer.

MichaelCummings at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 2
I would imagine that it would be a modified System.IO namespace though as they're not going to allow haphazard access to the drive, probably just to files in the game's folder or something similar.
JimPerry at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 3
You certainly won't have access to all of the Xbox drive. No going and

modifying the hiscore in your Halo saves, for instance :-)

We don't need to modify the System.IO API to achieve that, though. Just

won't let you open files in areas of the drive that you don't own.

We also provide a couple of new API namespaces for reading data.

Our Storage namespace gives you access to savegame files in a sensible

way. It basically just provides open methods that give you back a

System.IO.Stream, but is smart about putting the saves in a suitable

place (the appropriate user folder on Windows, or the special savegame

location on Xbox). We also have a StorageContainer.TitleLocation

property, which you can use to look up the path to where your game is

installed. This is useful for locating any asset files that are

installed alongside the main executable.

And then we have the Content Pipeline namespace. This gives a much higher level way of reading complex game types:

ContentManager manager = new ContentManager();

Texture2D sky = manager.Load<Texture2D>("SkyBitmap");

Model landscape = manager.Load<Model>("MyWorld");

etc.

ShawnHargreaves at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 4
Shawn,

Thanks for the reply, very exciting things. One further

question, is the Content Pipeline Namespace going to be available on

the Windows platform as well?

MichaelCummings at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 5

Michael Cummings wrote:

is the Content Pipeline Namespace going to be available on the Windows platform as well?

Absolutely!

ShawnHargreaves at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...