Add support for user titles

This commit is contained in:
SELEKCJONER
2024-11-18 21:51:23 +01:00
parent 34ce89446e
commit c8649335f6
8 changed files with 64 additions and 5 deletions

View File

@@ -52,6 +52,7 @@ namespace EpinelPS.StaticInfo
public Dictionary<int, ArchiveEventStoryRecord> archiveEventStoryRecords = new Dictionary<int, ArchiveEventStoryRecord>();
public Dictionary<int, ArchiveEventQuestRecord> archiveEventQuestRecords = new Dictionary<int, ArchiveEventQuestRecord>();
public Dictionary<int, ArchiveEventDungeonStageRecord> archiveEventDungeonStageRecords = new Dictionary<int, ArchiveEventDungeonStageRecord>();
public Dictionary<int, UserTitleRecord> userTitleRecords = new Dictionary<int, UserTitleRecord>();
@@ -423,6 +424,12 @@ namespace EpinelPS.StaticInfo
{
archiveEventDungeonStageRecords.Add(obj.id, obj);
}
var userTitleTable = await LoadZip<UserTitleTable>("UserTitleTable.json", progress);
foreach (var obj in userTitleTable.records)
{
userTitleRecords.Add(obj.id, obj);
}
// Load and parse ArchiveEventStoryTable.json
var archiveEventStoryTable = await LoadZip<ArchiveEventStoryTable>("ArchiveEventStoryTable.json", progress);