2c0f66d9c7
# Conflicts: # include/Engine/Collision/FillFrustumOctreeSystem.h # include/Engine/Core/Octree.h # include/Engine/Rendering/RenderSystem.h # include/Game/Game.h # resources/DefaultInput.ini # resources/Schema/Components.xsd # resources/Schema/Entities/Player.xml # resources/Schema/Types/Entity.xsd # src/Engine/Rendering/RenderSystem.cpp # src/Game/Game.cpp # src/Game/Systems/PlayerMovementSystem.cpp
29 lines
634 B
C++
29 lines
634 B
C++
#ifndef PlayerDeathSystem_h__
|
|
#define PlayerDeathSystem_h__
|
|
|
|
#include "Core/System.h"
|
|
#include "Input/EInputCommand.h"
|
|
#include "GLM.h"
|
|
#include "Rendering/ESetCamera.h"
|
|
#include "Core/ConfigFile.h"
|
|
|
|
#include "Core/EntityFile.h"
|
|
#include "Core/EntityFileParser.h"
|
|
|
|
#include "Core/EPlayerDeath.h"
|
|
|
|
class PlayerDeathSystem : public ImpureSystem
|
|
{
|
|
public:
|
|
PlayerDeathSystem(SystemParams params);
|
|
|
|
virtual void Update(double dt) override;
|
|
|
|
private:
|
|
EventRelay<PlayerDeathSystem, Events::PlayerDeath> m_OnPlayerDeath;
|
|
bool OnPlayerDeath(Events::PlayerDeath& e);
|
|
|
|
void createDeathEffect(EntityWrapper player);
|
|
|
|
};
|
|
#endif |