SceneSound.js 728 B

12345678910111213141516171819202122232425262728293031
  1. require('Polycode/Entity')
  2. function SceneSound() {
  3. if(arguments[0] != "__skip_ptr__") {
  4. this.__ptr = Polycode.SceneSound()
  5. }
  6. }
  7. SceneSound.prototype = Object.create(Entity.prototype)
  8. SceneSound.prototype.Update = function() {
  9. Polycode.SceneSound_Update(this.__ptr)
  10. }
  11. SceneSound.prototype.isDirectionalSound = function() {
  12. return Polycode.SceneSound_isDirectionalSound(this.__ptr)
  13. }
  14. SceneSound.prototype.setDirectionalSound = function(val) {
  15. Polycode.SceneSound_setDirectionalSound(this.__ptr, val)
  16. }
  17. SceneSound.prototype.setLoopOnLoad = function(val) {
  18. Polycode.SceneSound_setLoopOnLoad(this.__ptr, val)
  19. }
  20. SceneSound.prototype.getLoopOnLoad = function() {
  21. return Polycode.SceneSound_getLoopOnLoad(this.__ptr)
  22. }