internal Archive(AssetManager manager, BinaryReader reader, string name, FileManager fileManager) : base(manager, name) { Reader = reader; int headerSize = reader.ReadUInt16(); int count = headerSize / ArchiveRecord.HeaderSize; RichDictionary<int, ArchiveRecord> recordsById = new RichDictionary<int, ArchiveRecord>(); for (int index = 0; index < count; index++) { var record = new ArchiveRecord(this, reader, index, headerSize + 2); recordsById[record.Id] = record; } RecordsById = recordsById; }
internal Archive(AssetManager manager, BinaryReader reader, string name, FileManager fileManager) : base(manager, name) { Reader = reader; int headerSize = reader.ReadUInt16(); int count = headerSize / ArchiveRecord.HeaderSize; RichDictionary <int, ArchiveRecord> recordsById = new RichDictionary <int, ArchiveRecord>(); for (int index = 0; index < count; index++) { var record = new ArchiveRecord(this, reader, index, headerSize + 2); recordsById[record.Id] = record; } RecordsById = recordsById; }