public void Write(DataWriter writer, bool includeAssetPath)
        {
            if (includeAssetPath) {
                writer.WriteString(AssetPath);
            }

            writer.WriteBytes(GUID);
            writer.WriteInt32(Type);
            writer.WriteString(FilePath);
        }
示例#2
0
        public void Write(DataWriter writer)
        {
            writer.WriteString(Type);
            writer.WriteString(Name);
            writer.WriteInt32(ByteSize);
            writer.WriteInt32(Index);
            writer.WriteInt32(IsArray);
            writer.WriteInt32(Version);
            writer.WriteInt32(MetaFlag);

            writer.WriteInt32(Children.Length);
            foreach (TypeNode childNode in Children) {
                childNode.Write(writer);
            }
        }
示例#3
0
        public void Write(DataWriter writer, int offset, bool unity5Formatting)
        {
            if (unity5Formatting) {
                writer.WriteInt64(ObjectID);
            } else {
                writer.WriteInt32((int)ObjectID);
            }

            writer.WriteInt32(offset);
            writer.WriteInt32(Bytes.Length);
            writer.WriteInt32(TypeID);
            writer.WriteInt16(ClassID);

            if (unity5Formatting) {
                writer.WriteInt16(ScriptTypeIndex);
                writer.WriteBoolean(IsStripped != 0);
            } else {
                writer.WriteInt16(IsStripped);
            }
        }