private static void LoadWorld() { var aw = ArchiveWorker.Load(Memory.Archives.A_WORLD); // ReSharper disable once StringLiteralTypo var wmPath = $"wmset{Extended.GetLanguageShort(true)}.obj"; using (var worldMapSettings = new Wmset(aw.GetBinaryFile(wmPath))) { _worldEncounters = worldMapSettings.Encounters.SelectMany(x => x.Select(y => y)).Distinct().ToHashSet(); WorldEncountersLunar = worldMapSettings.EncountersLunar.SelectMany(x => x.Select(y => y)).Distinct().ToHashSet(); } //rail = new rail(aw.GetBinaryFile(railFile)); }
private static void LoadWorld() { ArchiveBase aw = ArchiveWorker.Load(Memory.Archives.A_WORLD); string wmPath = aw.GetListOfFiles().Where(x => x.ToLower().Contains($"wmset{Extended.GetLanguageShort(true)}.obj")).Select(x => x).First(); using (World.Wmset wmset = new World.Wmset(aw.GetBinaryFile(wmPath))) { _worldEncounters = wmset.Encounters.SelectMany(x => x.Select(y => y)).Distinct().ToHashSet(); WorldEncountersLunar = wmset.EncountersLunar.SelectMany(x => x.Select(y => y)).Distinct().ToHashSet(); } //rail = new rail(aw.GetBinaryFile(railFile)); }