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; }
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); }