Files
fishtanks/src/Events/CreateExplosion.h
T
2014-06-05 16:25:20 +02:00

36 lines
684 B
C++

#ifndef Event_CreateExplosion_h__
#define Event_CreateExplosion_h__
#include "EventBroker.h"
#include <glm/common.hpp>
#include <glm/gtc/quaternion.hpp>
namespace Events
{
struct CreateExplosion : Event
{
CreateExplosion() :
Color(glm::vec4(0)),
usePointLight(false),
UseGoalVector(false) {}
glm::vec3 Position;
glm::vec4 Color;
double LifeTime;
int ParticlesToSpawn;
std::string spritePath;
glm::quat RelativeUpOrientation;
float Speed;
float SpreadAngle;
float usePointLight;
std::vector<float> ParticleScale;
bool UseGoalVector;
glm::vec3 GoalVelocity;
bool Emitting;
float SpawnFrequency;
};
}
#endif // Event_CreateExplosion_h__