This commit is contained in:
Chomp 2024-03-28 20:08:17 +00:00
parent 8562d32f36
commit 98fb855737
2 changed files with 14 additions and 1 deletions

View File

@ -8,6 +8,7 @@
new DumpData{InputName = "resp.client.handbook.templates", OutputName = "handbook", OutputFolder = "templates"},
new DumpData{InputName = "resp.client.customization", OutputName = "customization", OutputFolder = "templates"},
new DumpData{InputName = "resp.client.account.customization", OutputName = "character", OutputFolder = "templates"},
new DumpData{InputName= "resp.client.achievement.list", OutputName = "achievements", OutputFolder = "templates", SpecialCase = true},
new DumpData{InputName = "resp.client.locale.ru", OutputName = "ru", OutputFolder = "locales\\global"},
new DumpData{InputName = "resp.client.locale.en", OutputName = "en", OutputFolder = "locales\\global"},
@ -25,6 +26,7 @@
new DumpData{InputName = "resp.client.locale.sk", OutputName = "sk", OutputFolder = "locales\\global"},
new DumpData{InputName = "resp.client.locale.cz", OutputName = "cz", OutputFolder = "locales\\global"},
new DumpData{InputName = "resp.client.locale.ch", OutputName = "ch", OutputFolder = "locales\\global"},
new DumpData{InputName = "resp.client.locale.ro", OutputName = "ro", OutputFolder = "locales\\global"},
new DumpData{InputName = "resp.client.menu.locale.en", OutputName = "en", OutputFolder = "locales\\menu"},
@ -43,7 +45,7 @@
new DumpData{InputName = "resp.client.trading.api.traderSettings", OutputName = "traders", OutputFolder = "traders", SpecialCase = true},
new DumpData{InputName= "usec.resp.client.trading.customization", OutputName= "usecsuits", OutputFolder = "traders/5ac3b934156ae10c4430e83c"},
new DumpData{InputName= "bear.resp.client.trading.customization", OutputName= "bearsuits", OutputFolder = "traders/5ac3b934156ae10c4430e83c"}
new DumpData{InputName= "bear.resp.client.trading.customization", OutputName= "bearsuits", OutputFolder = "traders/5ac3b934156ae10c4430e83c"},
};
}

View File

@ -104,3 +104,14 @@ void HandleTraderSettingsFile(DumpData names, Dump dumpFile)
LoggingHelpers.LogToConsole($"Found trader file: {traderData._id} wrote file to output folder");
}
}
void HandleAchievementFile(DumpData names, Dump dumpFile)
{
var achievements = JsonSerializer.Deserialize<Achievements>(dumpFile.data.ToString());
JsonWriter.WriteJson(achievements.elements, $"{names.OutputFolder}", Directory.GetCurrentDirectory(), "achievements");
}
public class Achievements
{
public List<object> elements { get;set;}
}