SceneSound.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. function SceneSound() {
  2. }
  3. SceneSound.prototype.Update = function() {
  4. Polycode.SceneSound_Update(this.__ptr)
  5. }
  6. SceneSound.prototype.Clone = function(deepClone,ignoreEditorOnly) {
  7. var retVal = new Entity()
  8. retVal.__ptr = Polycode.SceneSound_Clone(this.__ptr, deepClone,ignoreEditorOnly)
  9. return retVal
  10. }
  11. SceneSound.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
  12. Polycode.SceneSound_applyClone(this.__ptr, clone,deepClone,ignoreEditorOnly)
  13. }
  14. SceneSound.prototype.isDirectionalSound = function() {
  15. return Polycode.SceneSound_isDirectionalSound(this.__ptr)
  16. }
  17. SceneSound.prototype.setDirectionalSound = function(val) {
  18. Polycode.SceneSound_setDirectionalSound(this.__ptr, val)
  19. }
  20. SceneSound.prototype.getSound = function() {
  21. var retVal = new Sound()
  22. retVal.__ptr = Polycode.SceneSound_getSound(this.__ptr)
  23. return retVal
  24. }
  25. SceneSound.prototype.setLoopOnLoad = function(val) {
  26. Polycode.SceneSound_setLoopOnLoad(this.__ptr, val)
  27. }
  28. SceneSound.prototype.getLoopOnLoad = function() {
  29. return Polycode.SceneSound_getLoopOnLoad(this.__ptr)
  30. }