using FSO.Files.Utils; using System.Collections.Generic; using System.IO; namespace FSO.Files.Formats.IFF.Chunks { public class TATT : IffChunk { public Dictionary TypeAttributesByGUID = new Dictionary(); public override void Read(IffFile iff, Stream stream) { using (var io = IoBuffer.FromStream(stream, ByteOrder.LITTLE_ENDIAN)) { io.ReadUInt32(); //pad var version = io.ReadUInt32(); //zero var TTAT = io.ReadCString(4); IOProxy iop; var compressionCode = io.ReadByte(); //HACK: for freeso we don't run the field encoding coompression //since fso neighbourhoods are not compatible with ts1, it does not matter too much if (compressionCode != 1) iop = new TTABNormal(io); else iop = new IffFieldEncode(io); var total = iop.ReadInt32(); for (int i=0; i