PoolObject.js 462 B

123456789101112131415161718
  1. class PoolObject {
  2. constructor(e, t, r, n=!0) {
  3. E(this, "data");
  4. E(this, "nextFree");
  5. E(this, "previousFree");
  6. E(this, "free");
  7. this.data = e,
  8. this.nextFree = t,
  9. this.previousFree = r,
  10. this.free = n
  11. }
  12. dispose() {
  13. this.data && this.data instanceof Mesh && this.data.dispose(!0, !0),
  14. this.previousFree = null,
  15. this.nextFree = null,
  16. this.data = null
  17. }
  18. }