A savable reference to a TimedKeyframe. This does not actually store the contents of the TimedKeyframe; instead it stores a string reference.
        public static TimedKeyframeListSave FromTimedKeyframeList(TimedKeyframeList timedKeyframeList)
        {
            TimedKeyframeListSave tkls = new TimedKeyframeListSave();
            tkls.Name = timedKeyframeList.Name;
            tkls.Target = timedKeyframeList.TargetName;
            tkls.NameOfReferencedKeyframeList = timedKeyframeList.NameOfReferencedKeyframeList;
            tkls.Time = timedKeyframeList.TimeToExecute;

            return tkls;
        }
        public static AnimationSequenceSave FromAnimationSequence(AnimationSequence animationSequence)
        {
            AnimationSequenceSave sequenceSave = new AnimationSequenceSave();
            sequenceSave.Name = animationSequence.Name;

            foreach (TimedKeyframeList tkl in animationSequence)
            {
                sequenceSave.TimedKeyframeListSaves.Add(TimedKeyframeListSave.FromTimedKeyframeList(tkl));
            }
            return sequenceSave;
        }
Example #3
0
        public static TimedKeyframeListSave FromTimedKeyframeList(TimedKeyframeList timedKeyframeList)
        {
            TimedKeyframeListSave tkls = new TimedKeyframeListSave();

            tkls.Name   = timedKeyframeList.Name;
            tkls.Target = timedKeyframeList.TargetName;
            tkls.NameOfReferencedKeyframeList = timedKeyframeList.NameOfReferencedKeyframeList;
            tkls.Time = timedKeyframeList.TimeToExecute;

            return(tkls);
        }