EntityProp.js 919 B

12345678910111213141516171819202122232425262728
  1. function EntityProp() {
  2. Object.defineProperties(this, {
  3. 'propName': { enumerable: true, configurable: true, get: EntityProp.prototype.__get_propName, set: EntityProp.prototype.__set_propName},
  4. 'propValue': { enumerable: true, configurable: true, get: EntityProp.prototype.__get_propValue, set: EntityProp.prototype.__set_propValue}
  5. })
  6. }
  7. EntityProp.prototype.__get_propName = function() {
  8. return Polycode.EntityProp__get_propName(this.__ptr)
  9. }
  10. EntityProp.prototype.__set_propName = function(val) {
  11. Polycode.EntityProp__set_propName(this.__ptr, val)
  12. }
  13. EntityProp.prototype.__get_propValue = function() {
  14. return Polycode.EntityProp__get_propValue(this.__ptr)
  15. }
  16. EntityProp.prototype.__set_propValue = function(val) {
  17. Polycode.EntityProp__set_propValue(this.__ptr, val)
  18. }
  19. Duktape.fin(EntityProp.prototype, function (x) {
  20. if (x === EntityProp.prototype) {
  21. return;
  22. }
  23. Polycode.EntityProp__delete(x.__ptr)
  24. })