Exemplo n.º 1
0
        private void loadData()
        {
            FieldData = File.ReadAllBytes(FieldPath);
            GiftData  = new EncounterGift6[count];
            LB_Gifts.Items.Clear();
            for (int i = 0; i < GiftData.Length; i++)
            {
                GiftData[i] = new EncounterGift6(FieldData.Skip(fieldOffset + (i * fieldSize)).Take(fieldSize).ToArray(), Main.Config.ORAS);
                LB_Gifts.Items.Add($"{i:00} - {specieslist[GiftData[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");

            FinalEvo = Legal.FinalEvolutions_6;

            loaded = true;
            LB_Gifts.SelectedIndex = 0;
        }
Exemplo n.º 2
0
 private void loadData()
 {
     FieldData = File.ReadAllBytes(FieldPath);
     GiftData  = new EncounterGift6[count];
     LB_Gifts.Items.Clear();
     for (int i = 0; i < GiftData.Length; i++)
     {
         GiftData[i] = new EncounterGift6(FieldData.Skip(fieldOffset + i * fieldSize).Take(fieldSize).ToArray(), Main.Config.ORAS);
         LB_Gifts.Items.Add($"{i.ToString("00")} - {specieslist[GiftData[i].Species]}");
     }
     loaded = true;
     LB_Gifts.SelectedIndex = 0;
 }
Exemplo n.º 3
0
 private void loadData()
 {
     FieldData = File.ReadAllBytes(FieldPath);
     GiftData = new EncounterGift6[count];
     LB_Gifts.Items.Clear();
     for (int i = 0; i < GiftData.Length; i++)
     {
         GiftData[i] = new EncounterGift6(FieldData.Skip(fieldOffset + i * fieldSize).Take(fieldSize).ToArray(), Main.Config.ORAS);
         LB_Gifts.Items.Add($"{i.ToString("00")} - {specieslist[GiftData[i].Species]}");
     }
     loaded = true;
     LB_Gifts.SelectedIndex = 0;
 }