示例#1
0
 public static MvdMorphFrame Parse(BinaryReader br)
 {
     return(new MvdMorphFrame
     {
         FrameTime = br.ReadInt64(),
         Weight = br.ReadSingle(),
         Interpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
     });
 }
示例#2
0
 public static MvdBoneFrame Parse(BinaryReader br)
 {
     return(new MvdBoneFrame
     {
         StageId = br.ReadInt32(),
         FrameTime = br.ReadInt64(),
         Position = new[] { br.ReadSingle(), br.ReadSingle(), br.ReadSingle() },
         Quaternion = new[] { br.ReadSingle(), br.ReadSingle(), br.ReadSingle(), br.ReadSingle() },
         XInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
         YInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
         ZInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
         RotationInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
     });
 }
示例#3
0
 public static MvdCameraFrame Parse(BinaryReader br)
 {
     return(new MvdCameraFrame
     {
         StageId = br.ReadInt32(),
         FrameTime = br.ReadInt64(),
         Radius = br.ReadSingle(),
         Position = new[] { br.ReadSingle(), br.ReadSingle(), br.ReadSingle() },
         Angle = new[] { br.ReadSingle(), br.ReadSingle(), br.ReadSingle() },
         Fov = br.ReadSingle(),
         Perspective = br.ReadBoolean(),
         PositionInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
         AngleInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
         RadiusInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
         FovInterpolation = new[] { MvdInterpolationPoint.Parse(br), MvdInterpolationPoint.Parse(br) },
     });
 }