Adding in Particle Manager destroy handling

This commit is contained in:
Richard Davey 2022-12-13 18:51:04 +00:00
parent 4b4473394c
commit 1121cedf60
2 changed files with 20 additions and 0 deletions

View file

@ -2090,6 +2090,12 @@ var ParticleEmitter = new Class({
depthSortCallback: function (a, b)
{
return a.y - b.y;
},
destroy: function ()
{
// TODO
// Particles, animations, etc
}
});

View file

@ -494,6 +494,20 @@ var ParticleEmitterManager = new Class({
*/
setBlendMode: function ()
{
},
preDestroy: function ()
{
var emitters = this.emitters.list;
for (var i = 0; i < emitters.length; i++)
{
emitters[i].destroy();
}
// TODO
// Wells, references, etc
}
});