示例#1
0
        static MCVT ProcessHeights(BinaryReader fileReader, uint mcvtOffset)
        {
            fileReader.BaseStream.Position = mcvtOffset;
            var heights = new MCVT();
            var sig     = fileReader.ReadUInt32();
            var size    = fileReader.ReadUInt32();

            for (var i = 0; i < 145; i++)
            {
                heights.Heights[i] = fileReader.ReadSingle();
            }
            return(heights);
        }
示例#2
0
 static MCVT ProcessHeights(BinaryReader fileReader, uint mcvtOffset)
 {
     fileReader.BaseStream.Position = mcvtOffset;
     var heights = new MCVT();
     var sig = fileReader.ReadUInt32();
     var size = fileReader.ReadUInt32();
     for (var i = 0; i < 145; i++)
     {
         heights.Heights[i] = fileReader.ReadSingle();
     }
     return heights;
 }