public void SendBox(byte[] boxData, int box) { System.ReadOnlySpan <byte> bytes = boxData; byte[][] pkmData = bytes.Split(SlotSize); for (int i = 0; i < SlotCount; i++) { SendSlot(pkmData[i], box, i); } if (LPLGPE.SupportedVersions.Contains(Version)) { LPLGPE.SendBox(this, boxData, box); return; } if (LPBDSP.SupportedVersions.Contains(Version)) { LPBDSP.SendBox(this, boxData, box); return; } if (LPPLA.SupportedVersions.Contains(Version)) { LPPLA.SendBox(this, boxData, box); return; } LPBasic.SendBox(this, boxData, box); }
public byte[] ReadSlot(int box, int slot) { if (LPLGPE.SupportedVersions.Contains(Version)) { return(LPLGPE.ReadSlot(this, box, slot)); } if (LPBDSP.SupportedVersions.Contains(Version)) { return(LPBDSP.ReadSlot(this, box, slot)); } return(LPBasic.ReadSlot(this, box, slot)); }
public void SendSlot(byte[] data, int box, int slot) { if (LPLGPE.SupportedVersions.Contains(Version)) { LPLGPE.SendSlot(this, data, box, slot); return; } if (LPBDSP.SupportedVersions.Contains(Version)) { LPBDSP.SendSlot(this, data, box, slot); return; } LPBasic.SendSlot(this, data, box, slot); }
public byte[] ReadBox(int box, int len) { var allpkm = new List <byte[]>(); if (LPLGPE.SupportedVersions.Contains(Version)) { return(LPLGPE.ReadBox(this, box, len, allpkm)); } if (LPBDSP.SupportedVersions.Contains(Version)) { return(LPBDSP.ReadBox(this, box, allpkm)); } return(LPBasic.ReadBox(this, box, len, allpkm)); }