PKHeX.SAV_PokedexXY.getBools C# (CSharp) Method

getBools() private method

private getBools ( ) : void
return void
        private void getBools()
        {
            // Fill Bit arrays
            for (int i = 0; i < 0xA; i++)
            {
                byte[] data = new byte[0x60];
                Array.Copy(sav, savshift + 0x1A408 + 0x60 * i, data, 0, 0x60);
                BitArray BitRegion = new BitArray(data);
                for (int b = 0; b < (0x60 * 8); b++)
                    specbools[i, b] = BitRegion[b];
            }

            // Fill Language arrays
            byte[] langdata = new byte[0x280];
            Array.Copy(sav, savshift + 0x1A7C8, langdata, 0, 0x280);
            BitArray LangRegion = new BitArray(langdata);
            for (int b = 0; b < (721); b++) // 721 Species
                for (int i = 0; i < 7; i++) // 7 Languages
                    langbools[i, b] = LangRegion[7 * b + i];

            // Fill Foreign array
            {
                byte[] foreigndata = new byte[0x52];
                Array.Copy(sav, savshift + 0x1AA4C, foreigndata, 0, 0x52);
                BitArray ForeignRegion = new BitArray(foreigndata);
                for (int b = 0; b < (0x52 * 8); b++)
                    foreignbools[b] = ForeignRegion[b];
            }
        }