A record in an Archive.
Inheritance: Glare.Assets.DataAsset
コード例 #1
0
ファイル: Archive.cs プロジェクト: Burton-Radons/Alexandria
        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;
        }
コード例 #2
0
ファイル: Archive.cs プロジェクト: layshua/Alexandria
        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;
        }