Esempio n. 1
0
        public SwordGameDescriptor(string path, SwordGameId gameId)
        {
            _path  = path;
            GameId = gameId;
            Id     = gameId.ToString().ToLowerInvariant();
            // The game detector uses US English by default. We want British
            // English to match the recorded voices better.
            _culture = new CultureInfo("en-GB");
            switch (gameId)
            {
            case SwordGameId.Sword1:
                Description = "Broken Sword: The Shadow of the Templars";
                Platform    = Platform.Windows;
                break;

            case SwordGameId.Sword1Demo:
                Description = "Broken Sword: The Shadow of the Templars(Demo)";
                Platform    = Platform.Windows;
                break;

            case SwordGameId.Sword1Mac:
                Description = "Broken Sword: The Shadow of the Templars (Mac)";
                Platform    = Platform.Macintosh;
                break;

            case SwordGameId.Sword1MacDemo:
                Description = "Broken Sword: The Shadow of the Templars (Mac demo)";
                Platform    = Platform.Macintosh;
                break;

            case SwordGameId.Sword1Psx:
                Description = "Broken Sword: The Shadow of the Templars (PlayStation)";
                Platform    = Platform.PSX;
                break;

            case SwordGameId.Sword1PsxDemo:
                Description = "Broken Sword: The Shadow of the Templars (PlayStation demo)";
                Platform    = Platform.PSX;
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(gameId));
            }
        }
Esempio n. 2
0
 public SwordGameDescriptor(string path, SwordGameId gameId)
 {
     _path = path;
     GameId = gameId;
     Id = gameId.ToString().ToLowerInvariant();
     // The game detector uses US English by default. We want British
     // English to match the recorded voices better.
     _culture = new CultureInfo("en-GB");
     switch (gameId)
     {
         case SwordGameId.Sword1:
             Description = "Broken Sword: The Shadow of the Templars";
             Platform = Platform.Windows;
             break;
         case SwordGameId.Sword1Demo:
             Description = "Broken Sword: The Shadow of the Templars(Demo)";
             Platform = Platform.Windows;
             break;
         case SwordGameId.Sword1Mac:
             Description = "Broken Sword: The Shadow of the Templars (Mac)";
             Platform = Platform.Macintosh;
             break;
         case SwordGameId.Sword1MacDemo:
             Description = "Broken Sword: The Shadow of the Templars (Mac demo)";
             Platform = Platform.Macintosh;
             break;
         case SwordGameId.Sword1Psx:
             Description = "Broken Sword: The Shadow of the Templars (PlayStation)";
             Platform = Platform.PSX;
             break;
         case SwordGameId.Sword1PsxDemo:
             Description = "Broken Sword: The Shadow of the Templars (PlayStation demo)";
             Platform = Platform.PSX;
             break;
         default:
             throw new ArgumentOutOfRangeException(nameof(gameId));
     }
 }