NScumm.Scumm.IO.ResourceIndex2.ReadDirectoryOfObjects C# (CSharp) Method

ReadDirectoryOfObjects() protected method

protected ReadDirectoryOfObjects ( BinaryReader br, int num ) : void
br System.IO.BinaryReader
num int
return void
        protected virtual void ReadDirectoryOfObjects(BinaryReader br, int num)
        {
            ObjectOwnerTable = new byte[num];
            ObjectStateTable = new byte[num];
            ClassData = new uint[num];
            for (int i = 0; i < num; i++)
            {
                var tmp = br.ReadByte();
                ObjectOwnerTable[i] = (byte)(tmp & 0x0F);
                ObjectStateTable[i] = (byte)(tmp >> 4);
            }
        }