CreateExplosion now Event-based (not tested)

This commit is contained in:
Stiffly
2014-05-27 07:08:39 +02:00
parent 4b2f324d60
commit 5d53472286
4 changed files with 32 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#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
{
glm::vec3 Position;
double LifeTime;
int ParticlesToSpawn;
std::string spritePath;
glm::quat RelativeUpOrientation;
float Speed;
float SpreadAngle;
float ParticleScale;
};
}
#endif // Event_CreateExplosion_h__