public ParticleEmitter(int particleCount, Sprite sprite, ParticleProperties props, bool useGravity = false, ParticleEmitMode mode = ParticleEmitMode.Continuous, Entity parent = null) : base(parent) { this.particleCount = particleCount; this.particles = new Particle[particleCount]; this.sprite = sprite; this.mode = mode; this.props = props; this.useGravity = useGravity; }
public AnimatedParticleEmitter(int particleCount, AnimatedSprite sprite, IAnimationData animation, ParticleProperties props, IParticleEmitMode emitMode, bool useGravity = false, Entity parent = null) : base(particleCount, sprite, props, emitMode, useGravity, parent) { this.sprite = sprite; this.animation = animation; }