IkConstraintData.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Spine
  4. {
  5. public class IkConstraintData
  6. {
  7. public IkConstraintData(string name)
  8. {
  9. if (name == null)
  10. {
  11. throw new ArgumentNullException("name cannot be null.");
  12. }
  13. this.name = name;
  14. }
  15. public string Name
  16. {
  17. get
  18. {
  19. return this.name;
  20. }
  21. }
  22. public List<BoneData> Bones
  23. {
  24. get
  25. {
  26. return this.bones;
  27. }
  28. }
  29. public BoneData Target
  30. {
  31. get
  32. {
  33. return this.target;
  34. }
  35. set
  36. {
  37. this.target = value;
  38. }
  39. }
  40. public int BendDirection
  41. {
  42. get
  43. {
  44. return this.bendDirection;
  45. }
  46. set
  47. {
  48. this.bendDirection = value;
  49. }
  50. }
  51. public float Mix
  52. {
  53. get
  54. {
  55. return this.mix;
  56. }
  57. set
  58. {
  59. this.mix = value;
  60. }
  61. }
  62. public override string ToString()
  63. {
  64. return this.name;
  65. }
  66. internal string name;
  67. internal List<BoneData> bones = new List<BoneData>();
  68. internal BoneData target;
  69. internal int bendDirection = 1;
  70. internal float mix = 1f;
  71. }
  72. }