Пример #1
0
 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);
 }