コード例 #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);
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 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);
 }
コード例 #4
0
        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));
        }