/// <summary> /// Move the targets of the used values /// </summary> /// <param name="helper">The flatten helper</param> public void MoveTargets(Prototypes.PrototypeFlattenerHelper helper) { foreach (var a in Activations) { a.MoveTargets(helper); } foreach (var e in Effects) { e.MoveTargets(helper); } EffectTiming = helper.Convert(EffectTiming); EffectTiming.MoveTargets(helper); }
/// <summary> /// Clones this animation completly. /// </summary> /// <returns>The clone</returns> public AnimationGroup Clone() { var g = new AnimationGroup(); foreach (var a in Activations) { g.Activations.Add(a.Clone()); } foreach (var e in Effects) { g.Effects.Add(e.Clone()); } g.Name = Name; g.EffectTiming = (ValueWrapper <double>)EffectTiming.Clone(); return(g); }