public void Read(ByteArray inData, AssetHeader assetHeader)
        {
            if (assetHeader.GetVersion() >= 7)
            {
                inData.ReadStringNull();
                attributes = inData.ReadInt();
            }

            int numBaseClasses = inData.ReadInt();
            Debug.Log("numBaseClasses:" + numBaseClasses);
            for (int i = 0; i < numBaseClasses; i++)
            {
                int classID = inData.ReadInt();

                FieldTypeNode node = new FieldTypeNode();
                node.Read(inData);

                typeMap.Add(classID, node);
            }

            // padding
            if (assetHeader.GetVersion() >= 7)
            {
                inData.ReadInt();
            }
        }
Пример #2
0
        public void Read(ByteArray inData, AssetHeader assetHeader)
        {
            if (assetHeader.GetVersion() >= 7)
            {
                inData.ReadStringNull();
                attributes = inData.ReadInt();
            }

            int numBaseClasses = inData.ReadInt();

            Debug.Log("numBaseClasses:" + numBaseClasses);
            for (int i = 0; i < numBaseClasses; i++)
            {
                int classID = inData.ReadInt();

                FieldTypeNode node = new FieldTypeNode();
                node.Read(inData);

                typeMap.Add(classID, node);
            }

            // padding
            if (assetHeader.GetVersion() >= 7)
            {
                inData.ReadInt();
            }
        }
        public void Read(ByteArray inData)
        {
            type.Read(inData);

            int numChildren = inData.ReadInt();
            for (int i = 0; i < numChildren; i++)
            {
                FieldTypeNode child = new FieldTypeNode();
                child.Read(inData);
                list.Add(child);
            }
        }
Пример #4
0
        public void Read(ByteArray inData)
        {
            type.Read(inData);

            int numChildren = inData.ReadInt();

            for (int i = 0; i < numChildren; i++)
            {
                FieldTypeNode child = new FieldTypeNode();
                child.Read(inData);
                list.Add(child);
            }
        }