示例#1
0
        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;
        }
示例#2
0
        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;
        }