private void loadData() { FieldData = File.ReadAllBytes(FieldPath); EncounterData = new EncounterStatic6[count]; LB_Encounters.Items.Clear(); for (int i = 0; i < EncounterData.Length; i++) { EncounterData[i] = new EncounterStatic6(FieldData.Skip(fieldOffset + i * fieldSize).Take(fieldSize).ToArray()); LB_Encounters.Items.Add($"{i:00} - {specieslist[EncounterData[i].Species]}"); } foreach (var s in ability) { CB_Ability.Items.Add(s); } foreach (var s in gender) { CB_Gender.Items.Add(s); } FinalEvo = Legal.FinalEvolutions_6; ReplaceLegend = Legal.Legendary_Mythical_6; loaded = true; LB_Encounters.SelectedIndex = 0; }
private void loadData() { FieldData = File.ReadAllBytes(FieldPath); EncounterData = new EncounterStatic6[count]; LB_Encounters.Items.Clear(); for (int i = 0; i < EncounterData.Length; i++) { EncounterData[i] = new EncounterStatic6(FieldData.Skip(fieldOffset + i * fieldSize).Take(fieldSize).ToArray()); LB_Encounters.Items.Add($"{i.ToString("00")} - {specieslist[EncounterData[i].Species]}"); } loaded = true; LB_Encounters.SelectedIndex = 0; }
private void LoadData() { FieldData = File.ReadAllBytes(FieldPath); EncounterData = new EncounterStatic6[count]; LB_Encounters.Items.Clear(); for (int i = 0; i < EncounterData.Length; i++) { EncounterData[i] = new EncounterStatic6(FieldData.Skip(fieldOffset + (i * fieldSize)).Take(fieldSize).ToArray()); LB_Encounters.Items.Add($"{i:00} - {specieslist[EncounterData[i].Species]}"); } foreach (var s in ability) { CB_Ability.Items.Add(s); } CB_Gender.Items.Clear(); CB_Gender.Items.Add("- / Genderless/Random"); CB_Gender.Items.Add("♂ / Male"); CB_Gender.Items.Add("♀ / Female"); loaded = true; LB_Encounters.SelectedIndex = 0; }