Damage and Spashdamage working, phantomShapes not really working

This commit is contained in:
ViktorLjung
2014-05-27 07:04:29 +02:00
parent a0ee235473
commit c37df5c178
27 changed files with 804 additions and 202 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef DamageSystem_h__
#define DamageSystem_h__
#include "System.h"
#include "Components/Health.h"
#include "Events/Damage.h"
namespace Systems
{
class DamageSystem : public System
{
public:
DamageSystem(World* world, std::shared_ptr<::EventBroker> eventBroker)
: System(world, eventBroker) { }
void Initialize() override;
void RegisterComponents(ComponentFactory* cf) override;
EventRelay<DamageSystem, Events::Damage> m_EDamage;
bool OnDamage(const Events::Damage &event);
private:
};
}
#endif // DamageSystem_h__