示例#1
0
        public void Read(BundleReader reader)
        {
            if (HasBlockInfo(reader.Generation))
            {
                Unknown0   = reader.ReadInt32();
                Unknown1   = reader.ReadInt32();
                Unknown2   = reader.ReadInt32();
                Unknown3   = reader.ReadInt32();
                BlockInfos = reader.ReadBundleArray <BlockInfo>();
            }

            Entries = reader.ReadBundleArray <BundleFileEntry>();
        }
示例#2
0
        public void Read(BundleReader reader)
        {
            if (HasBlockInfo(reader.Generation))
            {
                // unknown 0x10
                reader.BaseStream.Position += 0x10;
                BlockInfos = reader.ReadBundleArray <BlockInfo>();
            }

            int count = reader.ReadInt32();
            Dictionary <string, BundleFileEntry> entries = new Dictionary <string, BundleFileEntry>(count);

            for (int i = 0; i < count; i++)
            {
                BundleFileEntry entry = reader.ReadBundle <BundleFileEntry>();
                entries.Add(entry.Name, entry);
            }
            Entries = entries;
        }