SkeletonAnimation.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. function SkeletonAnimation() {
  2. }
  3. Duktape.fin(SkeletonAnimation.prototype, function (x) {
  4. if (x === SkeletonAnimation.prototype) {
  5. return;
  6. }
  7. Polycode.SkeletonAnimation__delete(x.__ptr)
  8. })
  9. SkeletonAnimation.prototype.addBoneTrack = function(boneTrack) {
  10. Polycode.SkeletonAnimation_addBoneTrack(this.__ptr, boneTrack)
  11. }
  12. SkeletonAnimation.prototype.getName = function() {
  13. return Polycode.SkeletonAnimation_getName(this.__ptr)
  14. }
  15. SkeletonAnimation.prototype.Play = function(once) {
  16. Polycode.SkeletonAnimation_Play(this.__ptr, once)
  17. }
  18. SkeletonAnimation.prototype.Stop = function() {
  19. Polycode.SkeletonAnimation_Stop(this.__ptr)
  20. }
  21. SkeletonAnimation.prototype.Reset = function() {
  22. Polycode.SkeletonAnimation_Reset(this.__ptr)
  23. }
  24. SkeletonAnimation.prototype.Update = function() {
  25. Polycode.SkeletonAnimation_Update(this.__ptr)
  26. }
  27. SkeletonAnimation.prototype.setSpeed = function(speed) {
  28. Polycode.SkeletonAnimation_setSpeed(this.__ptr, speed)
  29. }
  30. SkeletonAnimation.prototype.setWeight = function(newWeight) {
  31. Polycode.SkeletonAnimation_setWeight(this.__ptr, newWeight)
  32. }
  33. SkeletonAnimation.prototype.getWeight = function() {
  34. return Polycode.SkeletonAnimation_getWeight(this.__ptr)
  35. }
  36. SkeletonAnimation.prototype.isPlaying = function() {
  37. return Polycode.SkeletonAnimation_isPlaying(this.__ptr)
  38. }