Ejemplo n.º 1
0
 private void VerifyType()
 {
     if (Source is Int32)
     {
         VariantType = AnimVariantType.Int;
     }
     else if (Source is Int16)
     {
         VariantType = AnimVariantType.Short;
     }
     else if (Source is Int64)
     {
         VariantType = AnimVariantType.Long;
     }
     else if (Source is Single)
     {
         VariantType = AnimVariantType.Short;
     }
     else if (Source is Double)
     {
         VariantType = AnimVariantType.Double;
     }
     else if (Source is IInterpolator)
     {
         VariantType = AnimVariantType.Interpolator;
     }
     else
     {
         VariantType = AnimVariantType.Unknow;
     }
 }
Ejemplo n.º 2
0
 public AnimVariant(IInterpolator value)
 {
     Source      = value;
     VariantType = AnimVariantType.Interpolator;
 }
Ejemplo n.º 3
0
 public AnimVariant(double value)
 {
     Source      = value;
     VariantType = AnimVariantType.Double;
 }
Ejemplo n.º 4
0
 public AnimVariant(float value)
 {
     Source      = value;
     VariantType = AnimVariantType.Float;
 }
Ejemplo n.º 5
0
 public AnimVariant(long value)
 {
     Source      = value;
     VariantType = AnimVariantType.Long;
 }
Ejemplo n.º 6
0
 public AnimVariant(short value)
 {
     Source      = value;
     VariantType = AnimVariantType.Short;
 }
Ejemplo n.º 7
0
 public AnimVariant(int value)
 {
     Source      = value;
     VariantType = AnimVariantType.Int;
 }