topical media & game development 
  
 
 
 
 
  
    
    
  
 game-xna-intro-XnaGraphicEngineChapter6-Helpers-Directories.cs / cs
  // 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
  {
   <summary>
 Helper class which stores all used directories.
 
</summary>
	class Directories
        {
                #region Game base directory
 
<summary>
 We can use this to relocate the whole game directory to another
 location. Used for testing (everything is stored on a network drive).
 
</summary>
                public static readonly string GameBaseDirectory =
                        // Update to support Xbox360:
                        StorageContainer.TitleLocation;
                        //"";
                #endregion
                  #region Directories
   <summary>
 Content directory for all our textures, models and shaders.
 
</summary>
 <returns>String
</returns>
                public static string ContentDirectory
                {
                        get
                        {
                                return Path.Combine(GameBaseDirectory, "Content");
                        } // get
                } // ContentDirectory
   <summary>
 Sounds directory, for some reason XAct projects don't produce
 any content files (bug?). We just load them ourself!
 
</summary>
 <returns>String
</returns>
                public static string SoundsDirectory
                {
                        get
                        {
                                return Path.Combine(GameBaseDirectory, "Sounds");
                        } // get
                } // SoundsDirectory
   <summary>
 Default Screenshots directory.
 
</summary>
 <returns>String
</returns>
                public static string ScreenshotsDirectory
                {
                        get
                        {
                                return Path.Combine(GameBaseDirectory, "Screenshots");
                        } // get
                } // ScreenshotsDirectory
                #endregion
        } // class Directories
} // namespace XnaGraphicEngine.
Helpers
    
  
    
  
  
  
  
  
  
  
  (C) Æliens 
  20/2/2008
  
  
  You may not copy or print any of this material without explicit permission of the author or the publisher. 
  In case of other copyright issues, contact the author.
  
  
 
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  </script>
  <script type="text/javascript">
  _uacct = "UA-2780434-1";
  urchinTracker();
  </script>