A savable reference to a TimedKeyframe. This does not actually store the contents of the TimedKeyframe; instead it stores a string reference.
コード例 #1
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;
        }
コード例 #2
0
        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;
        }
コード例 #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);
        }