예제 #1
0
파일: Learnset.cs 프로젝트: kwsch/PKHeX
 public static Learnset[] getArray(byte[][] entries)
 {
     Learnset[] data = new Learnset[entries.Length];
     for (int i = 0; i < data.Length; i++)
         data[i] = new Learnset7(entries[i]);
     return data;
 }
예제 #2
0
 public static Learnset[] GetArray(byte[][] entries)
 {
     Learnset[] data = new Learnset[entries.Length];
     for (int i = 0; i < data.Length; i++)
     {
         data[i] = new Learnset7(entries[i]);
     }
     return(data);
 }
예제 #3
0
        public static Learnset[] getArray(byte[] input, int maxSpecies)
        {
            var data = new Learnset[maxSpecies + 1];

            int offset = 0;

            for (int s = 0; s < data.Length; s++)
            {
                data[s] = new Learnset1(input, ref offset);
            }

            return(data);
        }