mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-12 19:06:09 -10:00
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.
34 lines
650 B
C++
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
|