private void Parse(Stream s) { long tgiPosn, tgiSize; BinaryReader r = new BinaryReader(s); version = r.ReadUInt32(); tgiPosn = r.ReadUInt32() + s.Position; tgiSize = r.ReadUInt32(); nameHash = r.ReadUInt64(); tgiIndexes = new Int32IndexList(OnResourceChanged, s); bidirectional = r.ReadByte(); casPanelGroup = (CASPanelGroupType)r.ReadUInt32(); sort = (CASPanelSortType)r.ReadUInt32(); unknown1 = r.ReadUInt32(); tgiBlocks = new TGIBlockList(OnResourceChanged, s, tgiPosn, tgiSize); tgiIndexes.ParentTGIBlocks = tgiBlocks; }