MCPcopy Create free account
hub / github.com/melonjs/melonJS / destroy

Method destroy

packages/melonjs/src/camera/effects/mask_effect.ts:183–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 }
182
183 override destroy(): void {
184 this.tween.stop();
185 tweenPool.release(this.tween);
186 colorPool.release(this.color);
187 if (this._maskShape.type === "Ellipse") {
188 ellipsePool.release(this._maskShape as Ellipse);
189 } else {
190 polygonPool.release(this._maskShape as Polygon);
191 }
192 }
193}

Callers

nothing calls this directly

Calls 2

releaseMethod · 0.65
stopMethod · 0.45

Tested by

no test coverage detected