BabylonAnimationKey.cs 560 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace BabylonExport.Entities
  4. {
  5. [DataContract]
  6. public class BabylonAnimationKey : IComparable<BabylonAnimationKey>
  7. {
  8. [DataMember]
  9. public int frame { get; set; }
  10. [DataMember]
  11. public float[] values { get; set; }
  12. public int CompareTo(BabylonAnimationKey other)
  13. {
  14. if (other == null)
  15. return 1;
  16. else
  17. return this.frame.CompareTo(other.frame);
  18. }
  19. }
  20. }