Files
fs2open.github.com/code/particle/effects/ParticleEmitterEffect.h
asarium 422753976f Add support for "Effects per second" feature
This allows specifying how many times per second an effect should be
triggered for a particle source instead of triggering the effect every
frame. This will allow modders to achieve more consistent particle
effects regardless of FPS.
2019-01-19 13:56:45 +01:00

34 lines
650 B
C++

#ifndef PARTICLE_EMITTER_EFFECT_H
#define PARTICLE_EMITTER_EFFECT_H
#pragma once
#include "particle/ParticleEffect.h"
#include "particle/particle.h"
namespace particle {
namespace effects {
/**
* @ingroup particleEffects
*/
class ParticleEmitterEffect: public ParticleEffect {
private:
particle_emitter m_emitter;
int m_particleBitmap = -1;
float m_range = -1;
public:
ParticleEmitterEffect();
bool processSource(ParticleSource* source) override;
void parseValues(bool nocreate) override;
void pageIn() override;
void setValues(const particle_emitter& emitter, int bitmap, float range);
};
}
}
#endif // PARTICLE_EMITTER_EFFECT_H