| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //-----------------------------------------------------------------------------
- // Directories.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.IO;
- namespace RacingGame.Helpers
- {
- /// <summary>
- /// Helper class which stores all used directories.
- /// </summary>
- class Directories
- {
- /// <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:
- "";
- /// <summary>
- /// Content directory for all our textures, models and shaders.
- /// </summary>
- /// <returns>String</returns>
- public static string ContentDirectory
- {
- get
- {
- return "Content";// Path.Combine(GameBaseDirectory, "Content");
- }
- }
- /// <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(ContentDirectory, "Audio");
- }
- }
- /// <summary>
- /// Default Screenshots directory.
- /// </summary>
- /// <returns>String</returns>
- public static string ScreenshotsDirectory
- {
- get
- {
- return Path.Combine(GameBaseDirectory, "Screenshots");
- }
- }
- /// <summary>
- /// Private constructor to prevent instantiation.
- /// </summary>
- private Directories()
- {
- }
- }
- }
|