Example #1
0
        public void ReadChunks(List <AfterBurnerMapEntry> entries, Action <ChunkItem> callback)
        {
            foreach (var entry in entries)
            {
                if (entry.Offset < 1)
                {
                    continue;
                }

                _input.Position = Header.Offset + entry.Offset;

                ShockwaveReader chunkInput = (entry.IsCompressed ?
                                              _input.WrapDecompressor(entry.CompressedLength) : _input);

                callback?.Invoke(Read(chunkInput, entry.Header));
            }
        }