2f6261dfbf
PlayerSystem.h: added HeldItem enum PlayerSystem.cpp: simplified writing doubles, uses HeldItem enum ShootEventTest.cpp: simplified writing doubles
22 lines
486 B
C++
22 lines
486 B
C++
#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
|
|
int currentlyEquippedItem;
|
|
//currentAimingPoint must be sent, in case the camera is moved while the event is being processed
|
|
glm::vec2 currentAimingPoint;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |