private void LoadStructures() { var pos = _br.Stream.Position; _br.Stream.Position = _gb.Header.StructOffset; for (var i = 0; i < _gb.Header.StructCount; i++) { var q = _br.GetUInt32Queue(GffBasicFrame.ValueCount); var sf = new GffStructFrame(q.Dequeue(), q.Dequeue(), q.Dequeue()); _gb.StructArray.Add(sf); } _br.Stream.Position = pos; }
public void Load(LatinBinaryReader br) { var pos = br.Stream.Position; br.Stream.Position = 0; Type = new string(br.ReadChars(FileTypeSize)).Trim(); Version = new string(br.ReadChars(FileVersionSize)).Trim(); var q = br.GetUInt32Queue(DwordTableSize); var i = 0; while (q.Count > 0) { Infos[i++] = q.Dequeue(); } br.Stream.Position = pos; }