// Project: XnaGraphicEngine, File: Directories.cs
// Namespace: XnaGraphicEngine.Helpers, Class: Directories
// Path: C:\code\XnaGraphicEngine\Helpers, Author: Abi
// Code lines: 169, Size of file: 3,68 KB
// Creation date: 07.09.2006 05:56
// Last modified: 01.10.2006 18:53
// Generated with Commenter by abi.exDream.com
#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Microsoft.Xna.Framework.Storage;
#endregion
namespace XnaGraphicEngine.Helpers
{
///
/// Helper class which stores all used directories.
///
class Directories
{
#region Game base directory
///
/// We can use this to relocate the whole game directory to another
/// location. Used for testing (everything is stored on a network drive).
///
public static readonly string GameBaseDirectory =
// Update to support Xbox360:
StorageContainer.TitleLocation;
//"";
#endregion
#region Directories
///
/// Content directory for all our textures, models and shaders.
///
/// String
public static string ContentDirectory
{
get
{
return Path.Combine(GameBaseDirectory, "Content");
} // get
} // ContentDirectory
///
/// Sounds directory, for some reason XAct projects don't produce
/// any content files (bug?). We just load them ourself!
///
/// String
public static string SoundsDirectory
{
get
{
return Path.Combine(GameBaseDirectory, "Sounds");
} // get
} // SoundsDirectory
///
/// Default Screenshots directory.
///
/// String
public static string ScreenshotsDirectory
{
get
{
return Path.Combine(GameBaseDirectory, "Screenshots");
} // get
} // ScreenshotsDirectory
#endregion
} // class Directories
} // namespace XnaGraphicEngine.Helpers