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 BoneFrameList getBoneFrameList(Stream fs) { BoneFrameList list = new BoneFrameList(); try { list.BoneFrameCount = ParserHelper.getDWORD(fs); } catch (EndOfStreamException eof) { list.BoneFrameCount = 0; return(list); } for (int i = 0; i < list.BoneFrameCount; i++) { list.boneFrameDatas.Add(BoneFrameData.getBoneFrame(fs)); } return(list); }