Exemplo n.º 1
0
        void Read(BinaryReader br)
        {
            CDTrack = br.ReadLine();

            while (br.BaseStream.Position < br.BaseStream.Length)
            {
                QBlock block = QBlock.Read(br);
                Blocks.Add(block);
            }
        }
Exemplo n.º 2
0
        public static QBlock Read(BinaryReader br)
        {
            QBlock block = new QBlock();

            int length = br.ReadInt32();

            block.AngleX = br.ReadSingle();
            block.AngleY = br.ReadSingle();
            block.AngleZ = br.ReadSingle();

            long end = br.BaseStream.Position + length;

            while (br.BaseStream.Position < end)
            {
                QMessage msg = QMessage.Read(br);
                block.Messages.Add(msg);
            }

            return(block);
        }