public static RTTIBaseClassDescriptor Read(DataReader reader)
        {
            RTTIBaseClassDescriptor bcd = new RTTIBaseClassDescriptor();

            bcd.ClassID  = reader.ReadInt32();
            bcd.TypeTree = TypeNode.Read(reader);

            return(bcd);
        }
        public static RTTIBaseClassDescriptor Read(DataReader reader)
        {
            RTTIBaseClassDescriptor bcd = new RTTIBaseClassDescriptor();

            bcd.ClassID = reader.ReadInt32();
            bcd.TypeTree = TypeNode.Read(reader);

            return bcd;
        }
Esempio n. 3
0
        public static RTTIClassHierarchyDescriptor Read(DataReader reader)
        {
            RTTIClassHierarchyDescriptor chd = new RTTIClassHierarchyDescriptor();

            chd.Signature            = reader.ReadString();
            chd.Attributes           = reader.ReadInt32();
            chd.NumberOfBaseClasses  = reader.ReadInt32();
            chd.BaseClassDescriptors = new RTTIBaseClassDescriptor[chd.NumberOfBaseClasses];

            for (int i = 0; i < chd.NumberOfBaseClasses; i++)
            {
                chd.BaseClassDescriptors[i] = RTTIBaseClassDescriptor.Read(reader);
            }

            reader.ReadBytes(4); //Read padding bytes

            return(chd);
        }