2021-03-22 23:56:29 +00:00
|
|
|
//
|
|
|
|
// Created by SeanOMik on 3/21/2021.
|
|
|
|
// Github: https://github.com/SeanOMik
|
|
|
|
// Email: seanomik@gmail.com
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SIMPLEENGINE_PARTICLE_PROPERTY_H
|
|
|
|
#define SIMPLEENGINE_PARTICLE_PROPERTY_H
|
|
|
|
|
|
|
|
#include "../event.h"
|
2021-03-30 00:52:27 +00:00
|
|
|
#include <algorithm>
|
2021-03-22 23:56:29 +00:00
|
|
|
|
|
|
|
namespace simpleengine {
|
|
|
|
namespace particle {
|
|
|
|
class Particle;
|
|
|
|
class ParticleProperty {
|
|
|
|
public:
|
2021-03-30 00:52:27 +00:00
|
|
|
virtual std::unique_ptr<ParticleProperty> Clone() const = 0;
|
2021-03-22 23:56:29 +00:00
|
|
|
virtual void OnParticleSpawn(simpleengine::particle::Particle& particle) = 0;
|
|
|
|
virtual void Update(simpleengine::particle::Particle& particle) = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //SIMPLEENGINE_PARTICLE_PROPERTY_H
|