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
+1 -1
Submodule assets updated: 6cc38589ed...72b93d5750
+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__
+1
View File
@@ -163,6 +163,7 @@
<ClInclude Include="..\..\src\Events\BindGamepadButton.h" />
<ClInclude Include="..\..\src\Events\BindKey.h" />
<ClInclude Include="..\..\src\Events\BindMouseButton.h" />
<ClInclude Include="..\..\src\Events\CreateExplosion.h" />
<ClInclude Include="..\..\src\Events\GamepadAxis.h" />
<ClInclude Include="..\..\src\Events\GamepadButton.h" />
<ClInclude Include="..\..\src\Events\InputCommand.h" />
@@ -158,6 +158,9 @@
<Filter Include="Gameplay\Components">
<UniqueIdentifier>{cb06b441-90b8-46ed-b347-4190dac7185b}</UniqueIdentifier>
</Filter>
<Filter Include="Particle System\Events">
<UniqueIdentifier>{ddd3c442-7c2f-4690-9308-fcef62deee0b}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\World.h" />
@@ -397,6 +400,9 @@
<ClInclude Include="..\..\src\Components\Player.h">
<Filter>Gameplay\Components</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Events\CreateExplosion.h">
<Filter>Particle System\Events</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\Shaders\Fragment2.glsl">