private void PopulateData(string id_string)
 {
     allBattles                = DataPopulator.Populate_Data <BattleWrapper>(file, 0xf5, 0x28, memory_offsets[id_string]["Battles"], true);
     battleList.ItemsSource    = allBattles;
     allEncounters             = DataPopulator.Populate_Data <EncountersWrapper>(file, 0xbf, 4, memory_offsets[id_string]["Encounters"], false);
     encounterList.ItemsSource = allEncounters;
     allParts             = DataPopulator.Populate_Data <PartWrapper>(file, 480, 0x10, memory_offsets[id_string]["Parts"], false);
     partData.ItemsSource = allParts;
     randomizer           = new Randomizer(allBattles, allEncounters, allParts);
 }
Esempio n. 2
0
        private void PopulateData(string id_string)
        {
            DataPopulator.Populate_Battles(file, memory_offsets[id_string]["Battles"], allBattles);
            battleList.ItemsSource = allBattles;
            battle_offset          = memory_offsets[id_string]["Battles"];

            DataPopulator.Populate_Encounters(file, memory_offsets[id_string]["Encounters"], allEncounters);
            encounterList.ItemsSource = allEncounters;
            encounters_offset         = memory_offsets[id_string]["Encounters"];

            DataPopulator.Populate_Parts(file, memory_offsets[id_string]["Parts"], allParts);
            partData.ItemsSource = allParts;
            parts_offset         = memory_offsets[id_string]["Parts"];
        }