SceneEntityInstance.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. require('Polycode/Entity')
  2. function SceneEntityInstance() {
  3. if(arguments[0] != "__skip_ptr__") {
  4. this.__ptr = Polycode.SceneEntityInstance()
  5. }
  6. Object.defineProperties(this, {
  7. 'cloneUsingReload': { enumerable: true, configurable: true, get: SceneEntityInstance.prototype.__get_cloneUsingReload, set: SceneEntityInstance.prototype.__set_cloneUsingReload},
  8. 'fileName': { enumerable: true, configurable: true, get: SceneEntityInstance.prototype.__get_fileName, set: SceneEntityInstance.prototype.__set_fileName}
  9. })
  10. }
  11. SceneEntityInstance.prototype = Object.create(Entity.prototype)
  12. SceneEntityInstance.prototype.__get_cloneUsingReload = function() {
  13. return Polycode.SceneEntityInstance__get_cloneUsingReload(this.__ptr)
  14. }
  15. SceneEntityInstance.prototype.__set_cloneUsingReload = function(val) {
  16. Polycode.SceneEntityInstance__set_cloneUsingReload(this.__ptr, val)
  17. }
  18. SceneEntityInstance.prototype.__get_fileName = function() {
  19. return Polycode.SceneEntityInstance__get_fileName(this.__ptr)
  20. }
  21. SceneEntityInstance.prototype.__set_fileName = function(val) {
  22. Polycode.SceneEntityInstance__set_fileName(this.__ptr, val)
  23. }
  24. SceneEntityInstance.prototype.reloadEntityInstance = function() {
  25. Polycode.SceneEntityInstance_reloadEntityInstance(this.__ptr)
  26. }
  27. SceneEntityInstance.prototype.clearInstance = function() {
  28. Polycode.SceneEntityInstance_clearInstance(this.__ptr)
  29. }
  30. SceneEntityInstance.prototype.loadFromFile = function(fileName) {
  31. return Polycode.SceneEntityInstance_loadFromFile(this.__ptr, fileName)
  32. }
  33. SceneEntityInstance.prototype.getNumLinkedResourePools = function() {
  34. return Polycode.SceneEntityInstance_getNumLinkedResourePools(this.__ptr)
  35. }
  36. SceneEntityInstance.prototype.getResourceEntry = function() {
  37. var retVal = new SceneEntityInstanceResourceEntry("__skip_ptr__")
  38. retVal.__ptr = Polycode.SceneEntityInstance_getResourceEntry(this.__ptr)
  39. return retVal
  40. }
  41. SceneEntityInstance.prototype.hasLayerID = function(layerID) {
  42. return Polycode.SceneEntityInstance_hasLayerID(this.__ptr, layerID)
  43. }
  44. SceneEntityInstance.prototype.getNumLayers = function() {
  45. return Polycode.SceneEntityInstance_getNumLayers(this.__ptr)
  46. }
  47. SceneEntityInstance.prototype.getFileName = function() {
  48. return Polycode.SceneEntityInstance_getFileName(this.__ptr)
  49. }