public static MotionData getMotion(Stream fs) { MotionData motion = new MotionData(); motion.header = Header.getHeader(fs); motion.boneFrameList = BoneFrameList.getBoneFrameList(fs); motion.morphFrameList = MorphFrameList.getFraceFrameList(fs); motion.CameraFrames = CameraFrameList.getCrameraFrameList(fs); motion.LightFrames = LightFrameList.getLightFrameList(fs); return(motion); }
internal static MorphFrameList getFraceFrameList(Stream fs) { var morphFrameList = new MorphFrameList(); try { morphFrameList.MorphFrameCount = ParserHelper.getDWORD(fs); } catch { morphFrameList.MorphFrameCount = 0; return(morphFrameList); } for (int i = 0; i < morphFrameList.MorphFrameCount; i++) { morphFrameList.morphFrameDatas.Add(MorphFrameData.getMorphFrame(fs)); } return(morphFrameList); }