Skip to content

Commit 923fd26

Browse files
committed
Current work for printing out H2H/Quest requirements
1 parent a728c79 commit 923fd26

File tree

6 files changed

+816
-2
lines changed

6 files changed

+816
-2
lines changed

XbTool/XbTool/Options.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public enum Task
4242
ExportQuests,
4343
ReplaceArchive,
4444
SdPrintTest,
45-
GiveMaps
45+
GiveMaps,
46+
FindInnEvents,
47+
PrintQuests
4648
}
4749
}

XbTool/XbTool/Tasks.cs

+21-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using XbTool.Serialization;
1616
using XbTool.Types;
1717
using XbTool.Xb2;
18+
using XbTool.Xb2.GameData;
1819

1920
namespace XbTool
2021
{
@@ -96,6 +97,12 @@ internal static void RunTask(Options options)
9697
case Task.GiveMaps:
9798
GiveMaps(options);
9899
break;
100+
case Task.FindInnEvents:
101+
FindInnEvents(options);
102+
break;
103+
case Task.PrintQuests:
104+
PrintQuests(options);
105+
break;
99106
default:
100107
throw new ArgumentOutOfRangeException();
101108
}
@@ -463,7 +470,6 @@ private static void SdPrintTest(Options options)
463470
var localFs = new LocalFileSystem("output");
464471
fs.CopyFileSystem(localFs, options.Progress);
465472
}
466-
467473
private static void GiveMaps(Options options)
468474
{
469475
if (options.Input == null) throw new NullReferenceException("No input file was specified.");
@@ -475,5 +481,19 @@ private static void GiveMaps(Options options)
475481
BdatStringCollection tables = GetBdatStringCollection(options);
476482
Xbde.Maps.ReadMap(tables, options);
477483
}
484+
485+
private static void FindInnEvents(Options options)
486+
{
487+
BdatStringCollection tables = GetBdatStringCollection(options);
488+
HeartToHeart.PrintH2Hs(tables);
489+
//HeartToHeart.FindInnEvents(tables);
490+
491+
}
492+
493+
private static void PrintQuests(Options options)
494+
{
495+
BdatStringCollection tables = GetBdatStringCollection(options);
496+
Quest.ReadQuests(tables);
497+
}
478498
}
479499
}

0 commit comments

Comments
 (0)