New Event: EShoot. New Components: PrimaryItem,SecondaryItem. New Test: ShootEventTest. Added LeftMouseRelease->Shoot in PlayerSystem

TODO: generalize the test
This commit is contained in:
verysecrethero
2016-01-08 16:19:18 +01:00
parent 4a516a4d86
commit 31c1c0ac8d
13 changed files with 266 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef EShoot_h__
#define EShoot_h__
#include "EventBroker.h"
#include "../Core/Entity.h"
#include "Engine/GLM.h"
namespace Events
{
struct Shoot : Event
{
//shotgun etc has different amounts of damage probably (a sniper shot might one-shot)
//also different weapons will have different spread
std::string weaponType;
//currentAimingPoint must be sent, in case the camera is moved while the event is being processed
glm::vec2 currentAimingPoint;
};
}
#endif