예제 #1
0
        protected virtual void Duplicate(IMyConstProperty targetProp)
        {
            MyAnimatedProperty <T> animatedTargetProp = targetProp as MyAnimatedProperty <T>;

            System.Diagnostics.Debug.Assert(animatedTargetProp != null);

            animatedTargetProp.Interpolator = Interpolator;
            animatedTargetProp.ClearKeys();

            foreach (ValueHolder pair in m_keys)
            {
                animatedTargetProp.AddKey(pair.Duplicate());
            }
        }
예제 #2
0
 public int Compare(MyAnimatedProperty <T> .ValueHolder x, MyAnimatedProperty <T> .ValueHolder y)
 {
     return(x.Time.CompareTo(y.Time));
 }
예제 #3
0
 public MyAnimatedProperty2D(string name, MyAnimatedProperty <V> .InterpolatorDelegate interpolator)
     : base(name, false, null)
 {
     m_interpolator2 = interpolator;
 }
예제 #4
0
 public MyAnimatedProperty2DVector4(string name, MyAnimatedProperty <Vector4> .InterpolatorDelegate interpolator)
     : base(name, null)
 {
 }
예제 #5
0
 public MyAnimatedProperty2DEnum(string name, MyAnimatedProperty <int> .InterpolatorDelegate interpolator, Type enumType, List <string> enumStrings)
     : base(name, interpolator)
 {
     m_enumType    = enumType;
     m_enumStrings = enumStrings;
 }
예제 #6
0
 public MyAnimatedProperty2DInt(string name, MyAnimatedProperty <int> .InterpolatorDelegate interpolator)
     : base(name, interpolator)
 {
 }