public static MegaEvolutionSet[] ReadArray(byte[] data) { var count = data.Length / SIZE; var result = new MegaEvolutionSet[count]; for (int i = 0; i < count; i++) { result[i] = new MegaEvolutionSet(data, i); } return(result); }
public MegaEvolutionTable(IList <byte[]> data) { Table = new MegaEvolutionSet[data.Count][]; for (int i = 0; i < data.Count; i++) { int count = data[i].Length / MegaEvolutionSet.SIZE; Table[i] = new MegaEvolutionSet[count]; for (int j = 0; j < count; j++) { Table[i][j] = new MegaEvolutionSet(data[i], j); } } }