BabylonAnimation.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System.Runtime.Serialization;
  2. namespace BabylonExport.Entities
  3. {
  4. [DataContract]
  5. public class BabylonAnimation
  6. {
  7. [DataMember]
  8. public string name { get; set; }
  9. [DataMember]
  10. public string property { get; set; }
  11. [DataMember]
  12. public int dataType { get; set; }
  13. [DataMember]
  14. public bool enableBlending { get; set; }
  15. [DataMember]
  16. public float blendingSpeed { get; set; }
  17. [DataMember]
  18. public int loopBehavior { get; set; }
  19. [DataMember]
  20. public int framePerSecond { get; set; }
  21. [DataMember]
  22. public BabylonAnimationKey[] keys { get; set; }
  23. public enum DataType
  24. {
  25. Float = 0,
  26. Vector3 = 1,
  27. Quaternion = 2,
  28. Matrix = 3,
  29. Color3 = 4,
  30. }
  31. public enum LoopBehavior
  32. {
  33. Relative = 0,
  34. Cycle = 1,
  35. Constant = 2
  36. }
  37. public BabylonAnimation()
  38. {
  39. enableBlending = false;
  40. blendingSpeed = 0.01f;
  41. }
  42. }
  43. }