mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Merge pull request #5320 from vforsh/master
Add reserve property to particle emitter config
This commit is contained in:
commit
674966280e
3 changed files with 9 additions and 2 deletions
|
@ -863,6 +863,11 @@ var ParticleEmitter = new Class({
|
|||
this.setFrame(config.frame);
|
||||
}
|
||||
|
||||
if (HasValue(config, "reserve"))
|
||||
{
|
||||
this.reserve(config.reserve);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
|
@ -48,10 +48,12 @@
|
|||
* @property {(Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType)} [tint] - Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#tint}.
|
||||
* @property {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} [x] - Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#x} (emit only).
|
||||
* @property {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} [y] - Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#y} (emit only).
|
||||
* @property {object} [emitZone] - As {@link Phaser.GameObjects.Particles.ParticleEmitter#setEmitZone}.
|
||||
* @property {Phaser.Types.GameObjects.Particles.ParticleEmitterEdgeZoneConfig | Phaser.Types.GameObjects.Particles.ParticleEmitterRandomZoneConfig} [emitZone] - As {@link Phaser.GameObjects.Particles.ParticleEmitter#setEmitZone}.
|
||||
* @property {Phaser.Types.GameObjects.Particles.ParticleEmitterDeathZoneConfig} [deathZone] - As {@link Phaser.GameObjects.Particles.ParticleEmitter#setDeathZone}.
|
||||
* @property {Phaser.Types.GameObjects.Particles.ParticleEmitterBounds|Phaser.Types.GameObjects.Particles.ParticleEmitterBoundsAlt} [bounds] - As {@link Phaser.GameObjects.Particles.ParticleEmitter#setBounds}.
|
||||
* @property {object} [followOffset] - Assigns to {@link Phaser.GameObjects.Particles.ParticleEmitter#followOffset}.
|
||||
* @property {number} [followOffset.x] - x-coordinate of the offset.
|
||||
* @property {number} [followOffset.y] - y-coordinate of the offset.
|
||||
* @property {number|number[]|string|string[]|Phaser.Textures.Frame|Phaser.Textures.Frame[]|Phaser.Types.GameObjects.Particles.ParticleEmitterFrameConfig} [frame] - Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#frames}.
|
||||
* @property {integer} [reserve] - Creates specified number of inactive particles and adds them to this emitter's pool. {@link Phaser.GameObjects.Particles.ParticleEmitter#reserve}
|
||||
*/
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
* @callback Phaser.Types.GameObjects.Particles.RandomZoneSourceCallback
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Math.Vector2} point - A point to modify.
|
||||
* @param {Phaser.Math.Vector2Like} point - A point to modify.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue