public GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(0, new int[] { 0 }) });
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(1, new int[] { 1 }), });
public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(0, new int[] { 1, 3, 7, 9, 10, 14, 20, 22, 23, 24, 26, 28, 33, 36, 37, 39, 40, 46, 47, 49 }) });
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(1, new [] { 0 }), }).ToArray();
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(WorldHelpers.GetR1Worlds().Select(w => new GameInfo_World((int)w, Directory.EnumerateFiles(settings.GameDirectory + GetWorldFolderPath(w), $"*.XMP", SearchOption.TopDirectoryOnly) .Select(FileSystem.GetFileNameWithoutExtensions) .Select(x => Int32.Parse(x.Substring(5))) .ToArray())).Select(x => x.Index == 1 ? new GameInfo_World(x.Index, x.Maps.Append(140).ToArray()) : x).Append(new GameInfo_World(7, new int[] { 0 })).ToArray());
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(WorldHelpers.GetR1Worlds().Where(x => Directory.Exists(settings.GameDirectory + GetWorldFolderPath(x))).Select(w => new GameInfo_World((int)w, Directory.EnumerateFiles(settings.GameDirectory + GetWorldFolderPath(w), $"RAY??.LEV", SearchOption.TopDirectoryOnly) .Select(FileSystem.GetFileNameWithoutExtensions) .Select(x => Int32.Parse(x.Substring(3))) .ToArray())).Append(new GameInfo_World(7, new [] { 0 })).ToArray());
public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(0, ValueRange.EnumerateRanges(new ValueRange(2, 22), new ValueRange(24, 82)).ToArray()), // 3D new GameInfo_World(1, ValueRange.EnumerateRanges(new ValueRange(83, 86)).ToArray()), // Agent 9 new GameInfo_World(2, ValueRange.EnumerateRanges(new ValueRange(87, 90)).ToArray()), // Sgt Byrd new GameInfo_World(3, ValueRange.EnumerateRanges(new ValueRange(0, 8)).ToArray()), // Byrd Rescue });
public virtual GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(0, Enumerable.Range(0, 1).ToArray()), });
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(WorldHelpers.GetR1Worlds().Select(w => new GameInfo_World((int)w, Directory.EnumerateDirectories(settings.GameDirectory + GetWorldFolderPath(w), "MAP*", SearchOption.TopDirectoryOnly) .Select(Path.GetFileName) .Where(x => x.Length < 7) .Select(x => Int32.Parse(x.Replace("_", String.Empty).Substring(3))) .ToArray())).ToArray());
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(WorldHelpers.GetR1Worlds().Select(w => new GameInfo_World((int)w, Directory.EnumerateFiles(settings.GameDirectory, $"{GetWorldName(w)}*.MAP", SearchOption.TopDirectoryOnly) .Select(FileSystem.GetFileNameWithoutExtensions) .Select(x => Int32.Parse(x.Substring(3))) .ToArray())).ToArray());
/// <summary> /// Gets the levels for each world /// </summary> /// <param name="settings">The game settings</param> /// <returns>The levels</returns> public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { // Hard-code this since most levels don't have maps we can load new GameInfo_World(1, Enumerable.Range(1, 14).ToArray()), new GameInfo_World(2, Enumerable.Range(1, 5).ToArray()), });
public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[] { new GameInfo_World(0, ValueRange.EnumerateRanges(new ValueRange(0, 34), new ValueRange(39, 42)).ToArray()), // 3D new GameInfo_World(1, ValueRange.EnumerateRanges(new ValueRange(0, 3)).ToArray()), // Agent 9 new GameInfo_World(4, ValueRange.EnumerateRanges(new ValueRange(0, 10)).ToArray()), // Cutscenes });
public override GameInfo_Volume[] GetLevels(GameSettings settings) => GameInfo_Volume.SingleVolume(new GameInfo_World[0]);